Skip to content
Snippets Groups Projects
Commit 97871aa1 authored by Ahmed Mohamed's avatar Ahmed Mohamed
Browse files

Upload new file

parent eab2a3c5
No related merge requests found
#pragma once
#include "ofMain.h"
class Clone {
public:
void setup(int width, int height);
void setStrength(int strength);
void update(ofTexture& src, ofTexture& dst, ofTexture& mask);
void draw(float x, float y);
protected:
void maskedBlur(ofTexture& tex, ofTexture& mask, ofFbo& result);
ofFbo buffer, srcBlur, dstBlur;
ofShader maskBlurShader, cloneShader;
int strength;
};
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment