aboutsummaryrefslogtreecommitdiff
path: root/src/utils.h
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2014-04-19 16:36:49 +0200
committerraysan5 <raysan5@gmail.com>2014-04-19 16:36:49 +0200
commitf06a15ac8b3fe92d101ae795225fbf56fa670dba (patch)
treecdfba90ee24fd078a15c89d8753ee3e11d8e229b /src/utils.h
parent650a8f7f159d3ce2addb1b0fdb31c3f460005391 (diff)
downloadraylib-f06a15ac8b3fe92d101ae795225fbf56fa670dba.tar.gz
raylib-f06a15ac8b3fe92d101ae795225fbf56fa670dba.zip
raylib 1.1
View CHANGELOG for a detailed list of changes
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/utils.h b/src/utils.h
index a887beef..ed10c3c7 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -3,9 +3,6 @@
* raylib.utils
*
* Some utility functions: rRES files data decompression
-*
-* Uses external lib:
-* tinfl - zlib DEFLATE algorithm decompression lib
*
* Copyright (c) 2013 Ramon Santamaria (Ray San - raysan@raysanweb.com)
*
@@ -32,12 +29,12 @@
//----------------------------------------------------------------------------------
// Some basic Defines
//----------------------------------------------------------------------------------
-//#define DO_NOT_TRACE_DEBUG_MSGS // Use this define to avoid DEBUG tracing
+#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 { IMAGE = 0, SOUND, MODEL, TEXT, RAW } DataType;
typedef enum { INFO = 0, ERROR, WARNING, DEBUG, OTHER } TraceLogType;
@@ -68,8 +65,10 @@ void WriteBitmap(const char *fileName, unsigned char *imgData, int width, int he
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
+void TraceLogOpen(const char *logFileName); // Open a trace log file (if desired)
+void TraceLogClose(); // Close the trace log file
+
+const char *GetExtension(const char *fileName);
#ifdef __cplusplus
}