diff options
| author | raysan5 <[email protected]> | 2017-01-15 01:10:23 +0100 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2017-01-15 01:10:23 +0100 |
| commit | 61f6b0f707f408b89306ff1a6a2d825662ba8311 (patch) | |
| tree | 91cb2122b654478c95835b248d369a9465b8a1c6 /src/utils.h | |
| parent | 4a158d972d9d110fcb581bc9f6583d05a2dc2544 (diff) | |
| download | raylib-61f6b0f707f408b89306ff1a6a2d825662ba8311.tar.gz raylib-61f6b0f707f408b89306ff1a6a2d825662ba8311.zip | |
Removed GetNextPOT(), review TraceLog()
Diffstat (limited to 'src/utils.h')
| -rw-r--r-- | src/utils.h | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/src/utils.h b/src/utils.h index e0db51fe..3ffd025c 100644 --- a/src/utils.h +++ b/src/utils.h @@ -43,19 +43,8 @@ //---------------------------------------------------------------------------------- // Types and Structures Definition //---------------------------------------------------------------------------------- -typedef enum { IMAGE = 0, SOUND, MODEL, TEXT, RAW } DataType; - typedef enum { INFO = 0, ERROR, WARNING, DEBUG, OTHER } TraceLogType; -// One resource info header, every resource includes this header (8 byte) -typedef struct { - unsigned short id; // Resource unique identifier (2 byte) - unsigned char type; // Resource type (1 byte) - unsigned char comp; // Data Compression and Coding (1 byte) - unsigned int size; // Data size in .rres file (compressed or not, only DATA) (4 byte) - unsigned int srcSize; // Source data size (uncompressed, only DATA) -} ResInfoHeader; - #ifdef __cplusplus extern "C" { // Prevents name mangling of functions #endif @@ -68,15 +57,14 @@ extern "C" { // Prevents name mangling of functions //---------------------------------------------------------------------------------- // Module Functions Declaration //---------------------------------------------------------------------------------- +void TraceLog(int msgType, const char *text, ...); // Outputs a trace log message +const char *GetExtension(const char *fileName); // Returns extension of a filename + #if defined(PLATFORM_DESKTOP) || defined(PLATFORM_RPI) void SaveBMP(const char *fileName, unsigned char *imgData, int width, int height, int compSize); void SavePNG(const char *fileName, unsigned char *imgData, int width, int height, int compSize); #endif -void TraceLog(int msgType, const char *text, ...); // Outputs a trace log message -const char *GetExtension(const char *fileName); // Returns extension of a filename -int GetNextPOT(int num); // Calculate next power-of-two value for a given num - #if defined(PLATFORM_ANDROID) void InitAssetManager(AAssetManager *manager); // Initialize asset manager from android app FILE *android_fopen(const char *fileName, const char *mode); // Replacement for fopen() |
