Exemplo n.º 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() ) );
 }
Exemplo n.º 2
0
 static void draw( const gl::Texture &texture, const Rectf &rect )
 {
     if( texture )
         gl::draw( texture, texture.getCleanBounds(), rect );
 }
Exemplo n.º 3
0
 static void draw( const gl::Texture &texture )
 {
     if( texture )
         gl::draw( texture, Area( texture.getCleanBounds() ), texture.getCleanBounds() );
 }