Texture module Module that handles textures
◆ orxTEXTURE_KZ_LOCALE_GROUP
#define orxTEXTURE_KZ_LOCALE_GROUP "Texture" |
◆ orxTEXTURE_KZ_LOGO_NAME
#define orxTEXTURE_KZ_LOGO_NAME "orx:texture:logo" |
◆ orxTEXTURE_KZ_PIXEL_NAME
#define orxTEXTURE_KZ_PIXEL_NAME "orx:texture:pixel" |
◆ orxTEXTURE_KZ_RESOURCE_GROUP
#define orxTEXTURE_KZ_RESOURCE_GROUP "Texture" |
◆ orxTEXTURE_KZ_SCREEN_NAME
#define orxTEXTURE_KZ_SCREEN_NAME "orx:texture:screen" |
◆ orxTEXTURE_KZ_TRANSPARENT_NAME
#define orxTEXTURE_KZ_TRANSPARENT_NAME "orx:texture:transparent" |
◆ orxTEXTURE
Internal texture structure
Definition at line 80 of file orxTexture.h.
◆ orxTEXTURE_EVENT
Event enum
Enumerator |
---|
orxTEXTURE_EVENT_CREATE | |
orxTEXTURE_EVENT_DELETE | |
orxTEXTURE_EVENT_LOAD | |
orxTEXTURE_EVENT_NUMBER | |
orxTEXTURE_EVENT_NONE | |
Definition at line 66 of file orxTexture.h.
◆ orxTexture_ClearCache()
Clears cache (if any texture is still in active use, it'll remain in memory until not referenced anymore)
- Returns
- orxSTATUS_SUCCESS / orxSTATUS_FAILURE
◆ orxTexture_Create()
Creates an empty texture
- Returns
- orxTEXTURE / orxNULL
◆ orxTexture_Delete()
Deletes a texture (and its referenced bitmap)
- Parameters
-
[in] | _pstTexture | Concerned texture |
- Returns
- orxSTATUS_SUCCESS / orxSTATUS_FAILURE
◆ orxTexture_Exit()
orxDLLAPI void orxFASTCALL orxTexture_Exit |
( |
| ) |
|
|
extern |
Exits from the texture module
◆ orxTexture_Get()
Gets texture given its name
- Parameters
-
- Returns
- orxTEXTURE / orxNULL
◆ orxTexture_GetBitmap()
Gets texture bitmap
- Parameters
-
[in] | _pstTexture | Concerned texture |
- Returns
- orxBITMAP / orxNULL
◆ orxTexture_GetLoadCount()
orxDLLAPI orxU32 orxFASTCALL orxTexture_GetLoadCount |
( |
| ) |
|
|
extern |
Gets pending load count
- Returns
- Pending load count
◆ orxTexture_GetName()
Gets texture name
- Parameters
-
[in] | _pstTexture | Concerned texture |
- Returns
- Texture name / orxSTRING_EMPTY
◆ orxTexture_GetScreenTexture()
Gets screen texture
- Returns
- Screen texture / orxNULL
◆ orxTexture_GetSize()
Gets texture size
- Parameters
-
[in] | _pstTexture | Concerned texture |
[out] | _pfWidth | Texture's width |
[out] | _pfHeight | Texture's height |
- Returns
- orxSTATUS_SUCCESS / orxSTATUS_FAILURE
◆ orxTexture_Init()
Inits the texture module
- Returns
- orxSTATUS_SUCCESS / orxSTATUS_FAILURE
◆ orxTexture_LinkBitmap()
Links a bitmap
- Parameters
-
[in] | _pstTexture | Concerned texture |
[in] | _pstBitmap | Bitmap to link |
[in] | _zDataName | Name associated with the bitmap (usually filename) |
[in] | _bTransferOwnership | If set to true, the texture will become the bitmap's owner and will have it deleted upon its own deletion |
- Returns
- orxSTATUS_SUCCESS / orxSTATUS_FAILURE
◆ orxTexture_Load()
orxDLLAPI orxTEXTURE *orxFASTCALL orxTexture_Load |
( |
const orxSTRING | _zFileName, |
|
|
orxBOOL | _bKeepInCache ) |
|
extern |
Loads a texture from a bitmap file
- Parameters
-
[in] | _zFileName | Name of the bitmap |
[in] | _bKeepInCache | Should be kept in cache after no more references exist? |
- Returns
- orxTEXTURE / orxNULL
◆ orxTexture_Setup()
orxDLLAPI void orxFASTCALL orxTexture_Setup |
( |
| ) |
|
|
extern |
Setups the texture module
◆ orxTexture_UnlinkBitmap()
Unlinks (and deletes if not used anymore) a bitmap
- Parameters
-
[in] | _pstTexture | Concerned texture |
- Returns
- orxSTATUS_SUCCESS / orxSTATUS_FAILURE