![]() |
Public API Reference |
#include <cspixmap.h>
Inheritance diagram for csSimplePixmap:
Public Methods | |
csSimplePixmap (iTextureHandle *hTexture) | |
Initialize the pixmap from a texture. More... | |
csSimplePixmap (iTextureHandle *hTexture, int x, int y, int w, int h) | |
Initialize the pixmap from a texture with given rectangle. More... | |
virtual | ~csSimplePixmap () |
Deinitialize the pixmap. More... | |
void | SetTextureHandle (iTextureHandle *hTexture) |
Change pixmap texture handle. More... | |
void | SetTextureRectangle (int x, int y, int w, int h) |
Set new location of pixmap image on texture. More... | |
virtual void | DrawScaled (iGraphics3D *g3d, int sx, int sy, int sw, int sh, uint8 Alpha=0) |
Draw the pixmap given the screen position and new size. More... | |
virtual void | DrawTiled (iGraphics3D *g3d, int sx, int sy, int sw, int sh, int orgx, int orgy, uint8 Alpha=0) |
Draw the pixmap tiled over an area. More... | |
virtual int | Width () |
return current width of this pixmap. More... | |
virtual int | Height () |
return current height of this pixmap. More... | |
virtual void | Advance (csTicks) |
advance in time. More... | |
virtual iTextureHandle * | GetTextureHandle () |
return current texture handle. More... |
Definition at line 86 of file cspixmap.h.
|
Initialize the pixmap from a texture.
|
|
Initialize the pixmap from a texture with given rectangle.
|
|
Deinitialize the pixmap.
|
|
advance in time.
Implements csPixmap. Definition at line 113 of file cspixmap.h. References csTicks. |
|
Draw the pixmap given the screen position and new size.
Implements csPixmap. |
|
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. Implements csPixmap. |
|
return current texture handle.
Implements csPixmap. |
|
return current height of this pixmap.
Implements csPixmap. |
|
Change pixmap texture handle.
|
|
Set new location of pixmap image on texture.
Definition at line 103 of file cspixmap.h. |
|
return current width of this pixmap.
Implements csPixmap. |