Reputation: 261
I am working on Open Frameworks.
I have made an application that extracts the face of the user from the live feed and projects it on a rectangle of chosen colour. Now I want the user to be able to draw something in the background of the face. To do that I need to implement a brush tool.
Problems faced:
Please help !!
Upvotes: 0
Views: 697
Reputation: 1911
You can use a frame buffer object ofFbo https://github.com/openframeworks/openFrameworks/blob/master/libs/openFrameworks/gl/ofFbo.h
ofFbo fbo;
setup(){
fbo.allocate(ofGetWidth(), ofGetHeight());
}
draw(){
fbo.begin();
//draw your brush
fbo.end();
fbo.draw();
//draw face
}
Upvotes: 1