summaryrefslogtreecommitdiffhomepage
path: root/src/raylib.h
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2017-12-24 16:47:33 +0100
committerraysan5 <[email protected]>2017-12-24 16:47:33 +0100
commite517d8fd168b361719c214d57463ef3ee461d425 (patch)
treefa9f6e8a66fa2e408d801c0becf8a09aa7088ec7 /src/raylib.h
parente5744283432e712f163e30ee6999300f3c09b244 (diff)
downloadraylib-e517d8fd168b361719c214d57463ef3ee461d425.tar.gz
raylib-e517d8fd168b361719c214d57463ef3ee461d425.zip
Added function SetTraceLogTypes()
Trace log messages could be configured with this function to select wich ones are shown
Diffstat (limited to 'src/raylib.h')
-rw-r--r--src/raylib.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/raylib.h b/src/raylib.h
index b0ff1fc1..d3d58afa 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -514,11 +514,11 @@ typedef struct VrDeviceInfo {
//----------------------------------------------------------------------------------
// Trace log type
typedef enum {
- LOG_INFO = 0,
- LOG_WARNING,
- LOG_ERROR,
- LOG_DEBUG,
- LOG_OTHER
+ LOG_INFO = 1,
+ LOG_WARNING = 2,
+ LOG_ERROR = 4,
+ LOG_DEBUG = 8,
+ LOG_OTHER = 16
} LogType;
// Shader location point type
@@ -727,7 +727,8 @@ RLAPI Matrix MatrixIdentity(void); // Returns ide
// Misc. functions
RLAPI void ShowLogo(void); // Activate raylib logo at startup (can be done with flags)
-RLAPI void SetConfigFlags(char flags); // Setup window configuration flags (view FLAGS)
+RLAPI void SetConfigFlags(unsigned char flags); // Setup window configuration flags (view FLAGS)
+RLAPI void SetTraceLogTypes(unsigned char types); // Enable trace log message types (bit flags based)
RLAPI void TraceLog(int logType, const char *text, ...); // Show trace log messages (LOG_INFO, LOG_WARNING, LOG_ERROR, LOG_DEBUG)
RLAPI void TakeScreenshot(const char *fileName); // Takes a screenshot of current screen (saved a .png)
RLAPI int GetRandomValue(int min, int max); // Returns a random value between min and max (both included)