summaryrefslogtreecommitdiffhomepage
path: root/src/raylib.h
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2016-12-27 17:42:22 +0100
committerraysan5 <[email protected]>2016-12-27 17:42:22 +0100
commit202f45415c98df2201202ba8edb10b6496cbeb62 (patch)
treeb151489e922b188b408f8b45aaf94b280a29b012 /src/raylib.h
parentbf3a213e44e8de1f61aeadc692c50290d3852a98 (diff)
downloadraylib-202f45415c98df2201202ba8edb10b6496cbeb62.tar.gz
raylib-202f45415c98df2201202ba8edb10b6496cbeb62.zip
rRES raylib resources custom file format support
First version of custom raylib resources file format -IN DEVELOPMENT-
Diffstat (limited to 'src/raylib.h')
-rw-r--r--src/raylib.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/raylib.h b/src/raylib.h
index 6fd960dc..e2e4ee13 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -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