mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-16 08:18:14 +00:00
Removed GetNextPOT(), review TraceLog()
This commit is contained in:
18
src/utils.h
18
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()
|
||||
|
Reference in New Issue
Block a user