示例#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);
}
示例#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);
}
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());
}
示例#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);
}
示例#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);
}
示例#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());
}
示例#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());
}