示例#1
0
 static void draw( const gl::Texture &texture, const Vec2f &pos )
 {
     if( texture )
         gl::draw( texture, texture.getCleanBounds(), Rectf( pos.x, pos.y, pos.x + texture.getCleanWidth(), pos.y + texture.getCleanHeight() ) );
 }
示例#2
0
 static void draw( const gl::Texture &texture, const Rectf &rect )
 {
     if( texture )
         gl::draw( texture, texture.getCleanBounds(), rect );
 }
示例#3
0
 static void draw( const gl::Texture &texture )
 {
     if( texture )
         gl::draw( texture, Area( texture.getCleanBounds() ), texture.getCleanBounds() );
 }