Пример #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);
}
Пример #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);
}
Пример #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);
}
Пример #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());
}
Пример #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());
}