Removed GetNextPOT(), review TraceLog()

This commit is contained in:
raysan5 2017-01-15 01:10:23 +01:00
parent 4a158d972d
commit 61f6b0f707
5 changed files with 42 additions and 101 deletions

View file

@ -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()