Exemplo n.º 1
0
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);
}
Exemplo n.º 2
0
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);
}
Exemplo n.º 3
0
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);
}
Exemplo n.º 4
0
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);
}
Exemplo n.º 5
0
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());
}
Exemplo n.º 6
0
//------------------------------------
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);
}
Exemplo n.º 7
0
//------------------------------------
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);
}
Exemplo n.º 8
0
//------------------------------------
void ofTexture::draw(float x, float y, float z, float w, float h) const{
	drawSubsection(x,y,z,w,h,0,0,getWidth(),getHeight());
}
Exemplo n.º 9
0
//------------------------------------
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());
}