diff options
| author | victorfisac <victorfisac@gmail.com> | 2016-06-08 00:34:35 +0200 |
|---|---|---|
| committer | victorfisac <victorfisac@gmail.com> | 2016-06-08 00:34:35 +0200 |
| commit | 0ae486f07c42b33ea44880159bdc4077ce076605 (patch) | |
| tree | 156adc3339a94f40859747cb9eafb5af35b73b5c /src/rlgl.c | |
| parent | f97f39987c1b35205eb6824d017a1c288ce64a2d (diff) | |
| parent | 79a6235811de391d8ae9d0b90bf39c2160dc7907 (diff) | |
| download | raylib-0ae486f07c42b33ea44880159bdc4077ce076605.tar.gz raylib-0ae486f07c42b33ea44880159bdc4077ce076605.zip | |
Merge remote-tracking branch 'refs/remotes/raysan5/develop' into develop
Diffstat (limited to 'src/rlgl.c')
| -rw-r--r-- | src/rlgl.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -48,8 +48,13 @@ #ifdef __APPLE__ #include <OpenGL/gl3.h> // OpenGL 3 library for OSX #else - #define GLAD_IMPLEMENTATION - #include "external/glad.h" // GLAD extensions loading library, includes OpenGL headers + #define GLAD_IMPLEMENTATION +#if defined(RLGL_STANDALONE) + #include "glad.h" // GLAD extensions loading library, includes OpenGL headers +#else + #include "external/glad.h" // GLAD extensions loading library, includes OpenGL headers +#endif + #endif #endif @@ -159,10 +164,6 @@ typedef struct { // TODO: Store draw state -> blending mode, shader } DrawCall; -#if defined(RLGL_STANDALONE) -typedef enum { INFO = 0, ERROR, WARNING, DEBUG, OTHER } TraceLogType; -#endif - //---------------------------------------------------------------------------------- // Global Variables Definition //---------------------------------------------------------------------------------- @@ -259,7 +260,6 @@ static Color *GenNextMipmap(Color *srcData, int srcWidth, int srcHeight); #endif #if defined(RLGL_STANDALONE) -static void TraceLog(int msgType, const char *text, ...); float *MatrixToFloat(Matrix mat); // Converts Matrix to float array #endif @@ -3344,7 +3344,7 @@ static Color *GenNextMipmap(Color *srcData, int srcWidth, int srcHeight) #if defined(RLGL_STANDALONE) // Output a trace log message // NOTE: Expected msgType: (0)Info, (1)Error, (2)Warning -static void TraceLog(int msgType, const char *text, ...) +void TraceLog(int msgType, const char *text, ...) { va_list args; va_start(args, text); |
