Simple abstract unified resource loading layer designed for various obsolete systems.
More...
|
file | resource.h |
| Platform-general function prototypes for loading assets.
|
|
file | resinc.h |
| Determines which resource-loading system to use at compile.
|
|
|
RESOURCE_HANDLE | resource_get_handle (const RESOURCE_ID id) SECTION_SETUP |
|
MEMORY_PTR | resource_lock_handle (RESOURCE_HANDLE handle) SECTION_SETUP |
| Lock the given handle so that it cannot be relocated in memory by the operating system.
|
|
MEMORY_PTR | resource_unlock_handle (RESOURCE_HANDLE handle) SECTION_SETUP |
| Unlock the given handle so that it may be relocated/recovered by the operating system.
|
|
int32_t | resource_sz_handle (RESOURCE_HANDLE handle) SECTION_SETUP |
|
void | resource_free_handle (RESOURCE_HANDLE) SECTION_SETUP |
|
uint8_t | resource_id_from_name (RESOURCE_ID *id, RESOURCE_NAME name, const char *ext) SECTION_SETUP |
|
Simple abstract unified resource loading layer designed for various obsolete systems.
◆ resource_debug_printf
#define resource_debug_printf |
( |
| lvl, |
|
|
| fmt, |
|
|
| rsrc, |
|
|
| ... ) |
Value:debug_printf( lvl, "resource %d: " fmt, rsrc, __VA_ARGS__ )
◆ resource_error_printf
#define resource_error_printf |
( |
| fmt, |
|
|
| rsrc, |
|
|
| ... ) |
Value:error_printf( "resource %d: " fmt, rsrc, __VA_ARGS__ )