openframeworks/openFrameworks — pull request #2552 by luteberget (2013-09-10 17:56:17+00:00)
Title: ofFbo: convenience draw functions from ofBaseDraws

Hi. I came across a small detail while trying to call *draw* on an FBO object. Passing an ofRectangle or ofPoint as the argument does not work like in ofImage, ofTexture and others.

The ofBaseDraws interface specifies the *draw* function with the following signatures:

void draw(float x, float y)
void draw(float x, float y, float w, float h)
void draw(const ofPoint & point)
void draw(const ofRectangle & rect)
void draw(const ofPoint & point, float w, float h)
The last three are implemented in the abstract class ofBaseDraws, but are hidden by the *draw* implementations (first two in the list) in ofFbo. Simply adding

using ofBaseDraws::draw;
will correct this.