|
| cGraphicsDrawer (iLowLevelGraphics *apLowLevelGraphics, cMaterialHandler *apMaterialHandler, cResources *apResources) |
|
void | DrawGfxObject (cGfxObject *apObject, const cVector3f &avPos) |
|
void | DrawGfxObject (cGfxObject *apObject, const cVector3f &avPos, const cVector2f &avSize, const cColor &aColor, bool abFlipH=false, bool abFlipV=false, float afAngle=0) |
|
void | DrawAll () |
|
cGfxObject * | CreateGfxObject (const tString &asFileName, const tString &asMaterialName, bool abAddToList=true) |
|
cGfxObject * | CreateGfxObject (Bitmap2D *apBmp, const tString &asMaterialName, bool abAddToList=true) |
|
cGfxObject * | CreateGfxObjectFromTexture (const tString &asFileName, const tString &asMaterialName, bool abAddToList=true) |
|
void | DestroyGfxObject (cGfxObject *apObject) |
|
cBackgroundImage * | AddBackgroundImage (const tString &asFileName, const tString &asMaterialName, const cVector3f &avPos, bool abTile, const cVector2f &avSize, const cVector2f &avPosPercent, const cVector2f &avVel) |
|
void | UpdateBackgrounds () |
|
void | DrawBackgrounds (const cRect2f &aCollideRect) |
|
void | ClearBackgrounds () |
|
◆ DrawGfxObject() [1/2]
Draw Gfx object during next DrawAll call.
- Parameters
-
◆ DrawGfxObject() [2/2]
void hpl::cGraphicsDrawer::DrawGfxObject |
( |
cGfxObject * |
apObject, |
|
|
const cVector3f & |
avPos, |
|
|
const cVector2f & |
avSize, |
|
|
const cColor & |
aColor, |
|
|
bool |
abFlipH = false , |
|
|
bool |
abFlipV = false , |
|
|
float |
afAngle = 0 |
|
) |
| |
Draw Gfx object during next DrawAll call.
- Parameters
-
apObject | |
avPos | |
avSize | Size of object |
aColor | color to use |
abFlipH | Flip image horisontally |
abFlipV | Flip image verically |
◆ DrawAll()
void hpl::cGraphicsDrawer::DrawAll |
( |
| ) |
|
Draw all gfx obejcts, Called after world is rendered by cScene.
◆ CreateGfxObject() [1/2]
cGfxObject* hpl::cGraphicsDrawer::CreateGfxObject |
( |
const tString & |
asFileName, |
|
|
const tString & |
asMaterialName, |
|
|
bool |
abAddToList = true |
|
) |
| |
Create Gfx object from file
- Parameters
-
&asFileName | Filename of image |
&asMaterialName | material to use |
abAddToList | if the engine should delete object at exit, this means DestroyGfxObject must be used. Should almost always be true. |
- Returns
◆ CreateGfxObject() [2/2]
cGfxObject* hpl::cGraphicsDrawer::CreateGfxObject |
( |
Bitmap2D * |
apBmp, |
|
|
const tString & |
asMaterialName, |
|
|
bool |
abAddToList = true |
|
) |
| |
Create gfx object from Bitmap
- Parameters
-
*apBmp | bitmap |
&asMaterialName | material to use |
abAddToList | if the engine should delete object at exit, this means DestroyGfxObject must be used. Should almost always be true. |
- Returns
◆ DestroyGfxObject()
void hpl::cGraphicsDrawer::DestroyGfxObject |
( |
cGfxObject * |
apObject | ) |
|
The documentation for this class was generated from the following file: