diff options
| author | Ray <raysan5@gmail.com> | 2014-04-19 14:21:22 +0200 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2014-04-19 14:21:22 +0200 |
| commit | 650a8f7f159d3ce2addb1b0fdb31c3f460005391 (patch) | |
| tree | 01f1a6968b784d07d63f6bf741c1527145cea25c /src/utils.h | |
| parent | 1c8dce429ee5a58d535fcca0e29fe3711aa3fcb5 (diff) | |
| parent | e6b82cb111c3485c5e6131fe29791f938305bce3 (diff) | |
| download | raylib-650a8f7f159d3ce2addb1b0fdb31c3f460005391.tar.gz raylib-650a8f7f159d3ce2addb1b0fdb31c3f460005391.zip | |
Merge pull request #2 from raysan5/testing
Integrate raylib 1.1 changes into master
Diffstat (limited to 'src/utils.h')
| -rw-r--r-- | src/utils.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/utils.h b/src/utils.h index 53241aff..a887beef 100644 --- a/src/utils.h +++ b/src/utils.h @@ -32,13 +32,15 @@ //---------------------------------------------------------------------------------- // Some basic Defines //---------------------------------------------------------------------------------- -//... +//#define DO_NOT_TRACE_DEBUG_MSGS // Use this define to avoid DEBUG tracing //---------------------------------------------------------------------------------- // Types and Structures Definition //---------------------------------------------------------------------------------- typedef enum { IMAGE, 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) @@ -61,9 +63,14 @@ extern "C" { // Prevents name mangling of functions // Module Functions Declaration //---------------------------------------------------------------------------------- unsigned char *DecompressData(const unsigned char *data, unsigned long compSize, int uncompSize); + void WriteBitmap(const char *fileName, unsigned char *imgData, int width, int height); void WritePNG(const char *fileName, unsigned char *imgData, int width, int height); +void TraceLog(int msgType, const char *text, ...); // Outputs a trace log message +void InitTraceLogFile(const char *logFileName); // Inits a trace log file +void CloseTraceLogFile(); // Closes the trace log file + #ifdef __cplusplus } #endif |
