rRES raylib resources custom file format support

First version of custom raylib resources file format -IN DEVELOPMENT-
This commit is contained in:
raysan5
2016-12-27 17:42:22 +01:00
parent bf3a213e44
commit 202f45415c
2 changed files with 464 additions and 0 deletions

View File

@@ -602,6 +602,26 @@ typedef enum {
HMD_FOVE_VR,
} VrDevice;
// rRES data returned when reading a resource, it contains all required data for user (24 byte)
typedef struct {
unsigned int type; // Resource type (4 byte)
unsigned int param1; // Resouce parameter 1 (4 byte)
unsigned int param2; // Resouce parameter 2 (4 byte)
unsigned int param3; // Resouce parameter 3 (4 byte)
unsigned int param4; // Resouce parameter 4 (4 byte)
void *data; // Resource data pointer (4 byte)
} RRESData;
typedef enum {
RRES_RAW = 0,
RRES_IMAGE,
RRES_WAVE,
RRES_VERTEX,
RRES_TEXT
} RRESDataType;
#ifdef __cplusplus
extern "C" { // Prevents name mangling of functions
#endif