class csSprite2D : public csBase This class is a abstraction for simple 2D sprites
| | csSprite2D (csTextureHandle *hTexture, int x, int y, int w, int h) Initialize the sprite from a texture. |
| | Draw (IGraphics2D* g2d, int sx, int sy) Draw the sprite without rescale |
| | Draw (IGraphics2D* g2d, int sx, int sy, int sw, int sh) Draw the sprite given the screen position and size |
| | Height () Return sprite height |
| | ok () Return true if sprite has been initialized okay |
| | SetTextureRectangle (int x, int y, int w, int h) Set new location of sprite image on texture |
| | Width () Return sprite width |
| | ~csSprite2D () Deinitialize the sprite |
This class is a abstraction for simple 2D sprites. Sprites can be drawn with a transparent key color as well as without transparent color. These sprites are slower relatively to run-length encoded sprites (see csSprite2D_RLE) but has the advantage that these sprites can be dynamically-scaled, while RLE-encoded cannot.
virtual ~csSprite2D()
bool ok()
void SetTextureRectangle(int x, int y, int w, int h)
virtual void Draw(IGraphics2D* g2d, int sx, int sy, int sw, int sh)
void Draw(IGraphics2D* g2d, int sx, int sy)
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de