void mui::TextureAtlas::draw( string name, float x, float y, float w, float h ){ const ofRectangle & rect = getRectRef(name); drawSubsection(x,y,0,w,h,rect.x,rect.y,rect.width,rect.height); }
void mui::TextureAtlas::draw( float x, float y, float w, float h, const ofRectangle & rect ){ drawSubsection(x, y, 0, w, h, rect.x, rect.y, rect.width, rect.height); }
void ofImage_<PixelType>::drawSubsection(float x, float y, float w, float h, float sx, float sy, float _sw, float _sh) const{ drawSubsection(x,y,0,w,h,sx,sy,_sw,_sh); }
void ofImage_<PixelType>::drawSubsection(float x, float y, float z, float w, float h, float sx, float sy) const{ drawSubsection(x,y,z,w,h,sx,sy,w,h); }
void ofImage_<PixelType>::draw(float x, float y, float z, float w, float h) const{ drawSubsection(x,y,z,w,h,0,0,getWidth(),getHeight()); }
//------------------------------------ void ofTexture::drawSubsection(float x, float y, float z, float w, float h, float sx, float sy) const{ drawSubsection(x,y,z,w,h,sx,sy,w,h); }
//------------------------------------ void ofTexture::drawSubsection(float x, float y, float w, float h, float sx, float sy, float _sw, float _sh) const{ drawSubsection(x,y,0,w,h,sx,sy,_sw,_sh); }
//------------------------------------ void ofTexture::draw(float x, float y, float z, float w, float h) const{ drawSubsection(x,y,z,w,h,0,0,getWidth(),getHeight()); }
//------------------------------------ void ofTexture::drawSubsection(float x, float y, float z, float w, float h, float sx, float sy){ drawSubsection(x,y,z,w,h,sx,sy,getWidth(),getHeight()); }