csPixmap Class Reference
This class is an simple set of inline routines good as an abstraction for simple 2D sprites. More...
#include <cstool/cspixmap.h>
Inheritance diagram for csPixmap:

Public Member Functions | |
virtual | ~csPixmap () |
Destructor. | |
virtual int | Width ()=0 |
return current width of this pixmap | |
virtual int | Height ()=0 |
return current height of this pixmap | |
virtual void | Advance (csTicks ElapsedTime)=0 |
advance in time | |
virtual iTextureHandle * | GetTextureHandle ()=0 |
return current texture handle | |
virtual void | DrawScaled (iGraphics3D *g3d, int sx, int sy, int sw, int sh, uint8 Alpha=0)=0 |
Draw the pixmap given the screen position and new size. | |
void | DrawScaledAlign (iGraphics3D *g3d, int sx, int sy, int sw, int sh, int alnx, int alny, uint8 Alpha=0) |
Draw the pixmap given the screen position and new size (aligned). | |
void | Draw (iGraphics3D *g3d, int sx, int sy, uint8 Alpha=0) |
Draw the pixmap without rescale. | |
void | DrawAlign (iGraphics3D *g3d, int sx, int sy, int alnx, int alny, uint8 Alpha=0) |
Draw the pixmap without rescale (aligned). | |
virtual void | DrawTiled (iGraphics3D *g3d, int sx, int sy, int sw, int sh, int orgx, int orgy, uint8 Alpha=0)=0 |
Draw the pixmap tiled over an area. | |
void | DrawTiled (iGraphics3D *g3d, int sx, int sy, int w, int h, uint8 Alpha=0) |
Fill a rectangle with the pixmap, tiled. |
Detailed Description
This class is an simple set of inline routines good as an abstraction for simple 2D sprites.Pixmaps can be drawn with a transparent key color as well as without transparent color: all this depends on texture handle. Note that this class is only used as the interface to several implementations of pixmaps, for example csSimplePixmap.
Definition at line 44 of file cspixmap.h.
Constructor & Destructor Documentation
|
Destructor.
Definition at line 48 of file cspixmap.h. |
Member Function Documentation
|
advance in time
Implemented in csAnimatedPixmap, and csSimplePixmap. |
|
Draw the pixmap without rescale.
Definition at line 67 of file cspixmap.h. References DrawScaled(), Height(), and Width(). |
|
Draw the pixmap without rescale (aligned).
Definition at line 70 of file cspixmap.h. References DrawScaledAlign(), Height(), and Width(). |
|
Draw the pixmap given the screen position and new size.
Implemented in csAnimatedPixmap, and csSimplePixmap. Referenced by Draw(), and DrawScaledAlign(). |
|
Draw the pixmap given the screen position and new size (aligned).
Definition at line 63 of file cspixmap.h. References DrawScaled(). Referenced by DrawAlign(). |
|
Fill a rectangle with the pixmap, tiled.
Definition at line 83 of file cspixmap.h. References DrawTiled(). |
|
Draw the pixmap tiled over an area. multiple draw commands with the same texture and same origin values will align properly. The orgx and orgy point to a pixel (perhaps offscreen) where the (0,0) pixel of this pixmap would be drawn. Implemented in csAnimatedPixmap, and csSimplePixmap. Referenced by DrawTiled(). |
|
return current texture handle
Implemented in csAnimatedPixmap, and csSimplePixmap. |
|
return current height of this pixmap
Implemented in csAnimatedPixmap, and csSimplePixmap. Referenced by Draw(), DrawAlign(), and csComponent::Pixmap(). |
|
return current width of this pixmap
Implemented in csAnimatedPixmap, and csSimplePixmap. Referenced by Draw(), DrawAlign(), and csComponent::Pixmap(). |
The documentation for this class was generated from the following file:
- cstool/cspixmap.h
Generated for Crystal Space by doxygen 1.3.9.1