// Copyright (C) 2015 Patryk Nadrowski // This file is part of the "Irrlicht Engine". // For conditions of distribution and use, see copyright notice in irrlicht.h #pragma once #ifdef _IRR_COMPILE_WITH_OGLES2_ #if defined(_IRR_COMPILE_WITH_IOS_DEVICE_) #include #include #elif defined(_IRR_COMPILE_WITH_ANDROID_DEVICE_) #include #include #include #elif defined(_IRR_EMSCRIPTEN_PLATFORM_) #include #include #include #else #define GL_GLEXT_PROTOTYPES 1 #define GLX_GLXEXT_PROTOTYPES 1 #include #include typedef char GLchar; #include #endif #ifndef GL_BGRA #define GL_BGRA 0x80E1; #endif // FBO definitions. #define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER 1 #define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER 2 #define GL_FRAMEBUFFER_INCOMPLETE_FORMATS 3 // to check if this header is in the current compile unit (different GL implementation used different "GLCommon" headers in Irrlicht #define IRR_COMPILE_GLES2_COMMON namespace irr { namespace video { // Forward declarations. class COpenGLCoreFeature; template class COpenGLCoreTexture; template class COpenGLCoreRenderTarget; template class COpenGLCoreCacheHandler; class COGLES2Driver; typedef COpenGLCoreTexture COGLES2Texture; typedef COpenGLCoreRenderTarget COGLES2RenderTarget; typedef COpenGLCoreCacheHandler COGLES2CacheHandler; } } #endif