diff options
author | nathan <nathansmith@disroot.org> | 2025-07-27 11:42:51 +0000 |
---|---|---|
committer | nathan <nathansmith@disroot.org> | 2025-07-27 11:42:51 +0000 |
commit | 37e603085675aca97f94cce66fcd5d0fa3d50b1a (patch) | |
tree | ef17fc3ff2cbaf12e56ce8be8a821b0e2f92ac40 /src/utils.h | |
parent | 9b3bbf4ef7c26c1267e8ea99024d9d1acd7f1376 (diff) | |
download | FindThings-37e603085675aca97f94cce66fcd5d0fa3d50b1a.tar.gz FindThings-37e603085675aca97f94cce66fcd5d0fa3d50b1a.tar.bz2 FindThings-37e603085675aca97f94cce66fcd5d0fa3d50b1a.zip |
Skybox working
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; |