aboutsummaryrefslogtreecommitdiff
path: root/src/rres.h
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2017-02-16 00:50:02 +0100
committerRay <raysan5@gmail.com>2017-02-16 00:50:02 +0100
commit05cff44d0a9af5bcb41ddd0baa6b7693f6ac116b (patch)
treedf03c0caa9179c4026dd0b8e66d718f8ca9b4d61 /src/rres.h
parent1c364cc5074fe8abb482ed9985705eeb249b93ae (diff)
downloadraylib-05cff44d0a9af5bcb41ddd0baa6b7693f6ac116b.tar.gz
raylib-05cff44d0a9af5bcb41ddd0baa6b7693f6ac116b.zip
Improved modules description -IN PROGRESS-
Working in modules configuration flags...
Diffstat (limited to 'src/rres.h')
-rw-r--r--src/rres.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/rres.h b/src/rres.h
index bed28723..362da10d 100644
--- a/src/rres.h
+++ b/src/rres.h
@@ -4,14 +4,18 @@
*
* Basic functions to load/save rRES resource files
*
-* External libs:
-* tinfl - DEFLATE decompression functions
+* CONFIGURATION:
+*
+* #define RREM_IMPLEMENTATION
+* Generates the implementation of the library into the included file.
+* If not defined, the library is in header only mode and can be included in other headers
+* or source files without problems. But only ONE file should hold the implementation.
*
-* Module Configuration Flags:
+* DEPENDENCIES:
+* tinfl - DEFLATE decompression functions
*
-* #define RREM_IMPLEMENTATION
-* Generates the implementation of the library into the included file.
*
+* LICENSE: zlib/libpng
*
* Copyright (c) 2016-2017 Ramon Santamaria (@raysan5)
*
@@ -81,7 +85,7 @@
RRES_TYPE_VERTEX,
RRES_TYPE_TEXT,
RRES_TYPE_FONT_IMAGE,
- RRES_TYPE_FONT_DATA, // Character { int value, recX, recY, recWidth, recHeight, offsetX, offsetY, xAdvance }
+ RRES_TYPE_FONT_CHARDATA, // Character { int value, recX, recY, recWidth, recHeight, offsetX, offsetY, xAdvance }
RRES_TYPE_DIRECTORY
} RRESDataType;
@@ -243,7 +247,7 @@ static void *DecompressData(const unsigned char *data, unsigned long compSize, i
// NOTE: Returns uncompressed data with parameters, search resource by id
RRESDEF RRES LoadResource(const char *fileName, int rresId)
{
- RRES rres;
+ RRES rres = { 0 };
RRESFileHeader fileHeader;
RRESInfoHeader infoHeader;