openframeworks/openFrameworks — Issue #772: ofBaseDraws draw(x, y) default
Author: elliotwoods
Created: 2011-10-12 15:08:55+00:00
State: open

Currently we have:
virtual void draw(float x,float y)=0;
virtual void draw(float x,float y,float w, float h)=0;

virtual float getHeight()=0;
virtual float getWidth()=0;

Since we're insisting that the user define a getWidth and getHeight, can I ask why we don't set the default of draw(x,y) to be
virtual void draw(float x,float y) {draw(x, y, getWidth(), getHeight()) };