Detailed Description
Texture module Module that handles textures
Define Documentation
| #define orxTEXTURE_KZ_SCREEN_NAME "-=SCREEN=-" |
Typedef Documentation
Internal texture structure
Definition at line 72 of file orxTexture.h.
Enumeration Type Documentation
Event enum
- Enumerator:
| orxTEXTURE_EVENT_CREATE |
|
| orxTEXTURE_EVENT_DELETE |
|
| orxTEXTURE_EVENT_NUMBER |
|
| orxTEXTURE_EVENT_NONE |
|
Definition at line 59 of file orxTexture.h.
Function Documentation
| orxDLLAPI orxTEXTURE* orxFASTCALL orxTexture_Create |
( |
) |
|
Creates an empty texture
- Returns:
- orxTEXTURE / orxNULL
| orxDLLAPI orxTEXTURE* orxFASTCALL orxTexture_CreateFromFile |
( |
const orxSTRING |
_zBitmapFileName ) |
|
Creates a texture from a bitmap file
- Parameters:
-
| [in] | _zBitmapFileName | Name of the bitmap |
- Returns:
- orxTEXTURE / orxNULL
Deletes a texture (and its referenced bitmap)
- Parameters:
-
| [in] | _pstTexture | Concerned texture |
- Returns:
- orxSTATUS_SUCCESS / orxSTATUS_FAILURE
| orxDLLAPI void orxFASTCALL orxTexture_Exit |
( |
) |
|
Exits from the texture module
Gets texture bitmap
- Parameters:
-
| [in] | _pstTexture | Concerned texture |
- Returns:
- orxBITMAP / orxNULL
| orxDLLAPI const orxSTRING orxFASTCALL orxTexture_GetName |
( |
const orxTEXTURE * |
_pstTexture ) |
|
Gets texture name
- Parameters:
-
| [in] | _pstTexture | Concerned texture |
- Returns:
- Texture name / orxNULL
| orxDLLAPI orxTEXTURE* orxFASTCALL orxTexture_GetScreenTexture |
( |
) |
|
Gets screen texture
- Returns:
- Screen texture / orxNULL
| orxDLLAPI orxSTATUS orxFASTCALL orxTexture_GetSize |
( |
const orxTEXTURE * |
_pstTexture, |
|
|
orxFLOAT * |
_pfWidth, |
|
|
orxFLOAT * |
_pfHeight |
|
) |
| |
Gets texture size
- Parameters:
-
| [in] | _pstTexture | Concerned texture |
| [out] | _pfWidth | Texture's width |
| [out] | _pfHeight | Texture's height |
- Returns:
- orxSTATUS_SUCCESS / orxSTATUS_FAILURE
| orxDLLAPI orxSTATUS orxFASTCALL orxTexture_Init |
( |
) |
|
Inits the texture module
- Returns:
- orxSTATUS_SUCCESS / orxSTATUS_FAILURE
| orxDLLAPI orxSTATUS orxFASTCALL orxTexture_LinkBitmap |
( |
orxTEXTURE * |
_pstTexture, |
|
|
const orxBITMAP * |
_pstBitmap, |
|
|
const orxSTRING |
_zDataName |
|
) |
| |
Links a bitmap
- Parameters:
-
| [in] | _pstTexture | Concerned texture |
| [in] | _pstBitmap | Bitmap to link |
| [in] | _zDataName | Name associated with the bitmap (usually filename) |
- Returns:
- orxSTATUS_SUCCESS / orxSTATUS_FAILURE
Sets texture color
- Parameters:
-
| [in] | _pstTexture | Concerned texture |
| [in] | _pstColor | Color to set |
- Returns:
- orxSTATUS_SUCCESS / orxSTATUS_FAILURE
| orxDLLAPI void orxFASTCALL orxTexture_Setup |
( |
) |
|
Setups the texture module
Unlinks (and deletes if not used anymore) a bitmap
- Parameters:
-
| [in] | _pstTexture | Concerned texture |
- Returns:
- orxSTATUS_SUCCESS / orxSTATUS_FAILURE