#pragma once #ifdef KORE_WINDOWS #include #include #endif #ifdef KORE_MACOS #include #include #endif #ifdef KORE_IOS #import #import #import #endif #ifdef KORE_ANDROID #include #if KORE_ANDROID_API >= 18 #include #endif #include #include #endif #ifdef KORE_EMSCRIPTEN #define GL_GLEXT_PROTOTYPES #define EGL_EGLEXT_PROTOTYPES #include #endif #ifdef KORE_LINUX #define GL_GLEXT_PROTOTYPES #include #include #endif #ifdef KORE_PI // #define GL_GLEXT_PROTOTYPES #include "GLES2/gl2.h" #include "EGL/egl.h" #include "EGL/eglext.h" #endif #ifdef KORE_TIZEN #include #endif #ifdef KORE_WASM #include #endif #include #ifdef NDEBUG #define glCheckErrors() \ {} #else #define glCheckErrors() \ { \ GLenum code = glGetError(); \ if (code != GL_NO_ERROR) { \ kinc_log(KINC_LOG_LEVEL_ERROR, "GL Error %d %s %d\n", code, __FILE__, __LINE__); \ } \ } #endif