dsekai
World engine for retrocomputers.
Loading...
Searching...
No Matches
Files | Macros | Functions
Unilayer Resource Layer

Simple abstract unified resource loading layer designed for various obsolete systems. More...

Files

file  resource.h
 Platform-general function prototypes for loading assets.
 
file  resinc.h
 Determines which resource-loading system to use at compile.
 

Macros

#define resource_debug_printf(lvl, fmt, rsrc, ...)   debug_printf( lvl, "resource %d: " fmt, rsrc, __VA_ARGS__ )
 
#define resource_error_printf(fmt, rsrc, ...)   error_printf( "resource %d: " fmt, rsrc, __VA_ARGS__ )
 
#define RESOURCE_FILE
 
#define RESOURCES   "FILE"
 

Functions

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
 

Detailed Description

Simple abstract unified resource loading layer designed for various obsolete systems.