diff options
Diffstat (limited to 'src/utils.h')
-rw-r--r-- | src/utils.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/utils.h b/src/utils.h index 08239b8..6532660 100644 --- a/src/utils.h +++ b/src/utils.h @@ -7,6 +7,7 @@ #include <stdbool.h> #include <raylib.h> +#include <rlgl.h> #include <raymath.h> #include "raygui.h" @@ -29,6 +30,13 @@ #define ALLOCATION_ERROR TraceLog(LOG_ERROR, "Allocation error in %s:%d", \ __FILE__, __LINE__) +// GLSL version +#ifdef PLATFORM_DESKTOP + #define GLSL_VERSION 330 +#else // PLATFORM_ANDROID, PLATFORM_WEB + #define GLSL_VERSION 100 +#endif + // Typedef hackery. typedef struct Game Game; typedef struct World World; |