Data Structures | |
| struct | RwMemoryFunctions |
Defines | |
| #define | RwMalloc(_s, _h) ((RWSRCGLOBAL(memoryFuncs).rwmalloc)((_s), (_h))) |
| #define | RwFree(_p) ((RWSRCGLOBAL(memoryFuncs).rwfree)((_p))) |
| #define | RwCalloc(_n, _s, _h) ((RWSRCGLOBAL(memoryFuncs).rwcalloc)((_n), (_s), (_h))) |
| #define | RwRealloc(_p, _s, _h) ((RWSRCGLOBAL(memoryFuncs).rwrealloc)((_p),(_s), (_h))) |
| #define | RwMemoryHintGetChunkID(_h) ((_h) & 0xFFFF) |
| #define | RwMemoryHintGetDuration(_h) ((_h) & rwMEMHINTDUR_MASK) |
| #define | RwMemoryHintGetFlags(_h) ((_h) & rwMEMHINTFLAG_MASK) |
Enumerations | |
| enum | RwMemoryHintFlag { rwMEMHINTFLAG_RESIZABLE = 0x01000000, rwMEMHINTFLAG_MASK = 0xFF000000, rwMEMHINTFLAGFORCEENUMSIZEINT = RWFORCEENUMSIZEINT } |
| enum | RwMemoryHintDuration { rwMEMHINTDUR_NADURATION = 0x00000000, rwMEMHINTDUR_FUNCTION = 0x00010000, rwMEMHINTDUR_FRAME = 0x00020000, rwMEMHINTDUR_EVENT = 0x00030000, rwMEMHINTDUR_GLOBAL = 0x00040000, rwMEMHINTDUR_MASK = 0x00FF0000, rwMEMHINTDURFORCEENUMSIZEINT = RWFORCEENUMSIZEINT } |
Functions | |
| const RwChar * | RwMemoryGetLastAllocFile (void) |
| RwUInt32 | RwMemoryGetLastAllocLine (void) |
| RwMemoryFunctions * | RwOsGetMemoryInterface (void) |
|
|
RwCalloc(_n, _s, _h) is a macro that calls the currently registered RwCalloc function. You can access all registered memory functions through an RwOsGetMemoryInterface() call which returns a pointer to an RwMemoryFunctions structure. You can also override the default RenderWare Graphics functions by passing a structure populated with your own RwMemoryFunctions structure to RwEngineInit().
For
|
|
|
RwFree(_p) is a macro that calls the currently registered RwFree function. You can access all registered memory functions through an RwOsGetMemoryInterface() call which returns a pointer to an RwMemoryFunctions structure. You can also override the default RenderWare Graphics functions by passing a structure populated with your own RwMemoryFunctions structure to RwEngineInit().
|
|
|
RwMalloc(_s, _h) is a macro that calls the currently registered RwMalloc function. You can access all registered memory functions through an RwOsGetMemoryInterface() call which returns a pointer to an RwMemoryFunctions structure. You can also override the default RenderWare Graphics functions by passing a structure populated with your own RwMemoryFunctions structure to RwEngineInit().
For
|
|
|
Macro for extracting chunkID from a hint. This is the id of either the object for which a memory request came, or of the module a call for allocation belongs to. Refer to RwCorePluginID for a list of all object IDs and to RwEngine, RwCriterionCoreID and RwCriterionWorldID for a list of all module IDs. Refer to RwMemoryFunctions for more details about the hints. |
|
|
Macro for extracting duration from a hint. Refer to RwMemoryFunctions for more details about the hints.
|
|
|
Macro for extracting flags from a hint. Refer to RwMemoryFunctions for more details about the hints.
|
|
|
RwRealloc(_p, _s, _h) is a macro that calls the currently registered RwRealloc function. You can access all registered memory functions through an RwOsGetMemoryInterface() call which returns a pointer to an RwMemoryFunctions structure. You can also override the default RenderWare Graphics functions by passing a structure populated with your own RwMemoryFunctions structure to RwEngineInit().
For
|
|
|
This type represents the duration of a memory.
|
|
|
This type represents the memory hint flags.
|
|
|
RwMemoryGetLastAllocFile is a function available only in an
This function does not exist in non-
|
|
|
RwMemoryGetLastAllocLine is a function available only in an
This function does not exist in non-
|
|
|
RwOsGetMemoryInterface is used to retrieve the memory functions used by RenderWare. The application can install any alternative interface that is compliant with RenderWare functions. If an application wishes to completely overload the memory interface then this can be achieved via the RwEngineInit API function which guarantees that the overload takes place before any memory allocation. The memory function pointers should not be manipulated directly. Note that since RenderWare allocates and frees memory in an asynchronous fashion it is not possible to install a completely different memory handler once the library has been initialized. It is, however, possible to install a daisy chained handler that gathers statistics before calling the default.
|
© 1993-2004 Criterion Software Limited. All rights reserved. Built Thu Feb 12 13:46:51 2004.
Send Feedback