// 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 #ifndef __C_OGLES2_COMMON_H_INCLUDED__ #define __C_OGLES2_COMMON_H_INCLUDED__ #include "IrrCompileConfig.h" #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 #if defined(_IRR_OGLES2_USE_EXTPOINTER_) #define GL_GLEXT_PROTOTYPES 1 #define GLX_GLXEXT_PROTOTYPES 1 #endif #include #include typedef char GLchar; #if defined(_IRR_OGLES2_USE_EXTPOINTER_) #include #endif #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 #endif