Elevate Engine 1
Loading...
Searching...
No Matches
GraphicsAPI.h
Go to the documentation of this file.
1#pragma once
2
3#if defined(EE_PLATFORM_WEB)
4 #include <GLES3/gl3.h>
5 #define EE_GLES
6
7 // Translation for modern OpenGL features that are not available in GLES3
8 #define GL_CLAMP_TO_BORDER GL_CLAMP_TO_EDGE
9 #define GL_PATCHES 0x000E
10 #define GL_TEXTURE_SWIZZLE_RGBA 0x8E46
11#else
12 // Safety to prevent double definition and supress warnings
13 #ifdef APIENTRY
14 #undef APIENTRY
15 #endif
16
17 #include <glad/glad.h>
18 #define EE_SUPPORTS_DSA
19#endif