| 1 | // Copyright (C) 2015 Patryk Nadrowskicxx . . $ `<file>/irr/src/COpenGLCommon.h`/ |
| 2 | // This file is part of the "Irrlicht Engine". |
| 3 | // For conditions of distribution and use, see copyright notice in irrlicht.h |
| 4 | |
| 5 | #pragma once |
| 6 | |
| 7 | #ifdef _IRR_COMPILE_WITH_OPENGL_cxx . . $ `<built-in>:481:9`! |
| 8 | |
| 9 | #if defined(_IRR_COMPILE_WITH_SDL_DEVICE_cxx . . $ `<built-in>:482:9`!) && defined(IRR_PREFER_SDL_GL_HEADER) |
| 10 | #ifdef _IRR_USE_SDL3_ |
| 11 | #include <SDL3/SDL_opengl.h> |
| 12 | #else |
| 13 | #include <SDL_video.h> |
| 14 | #include <SDL_opengl.h> |
| 15 | #endif |
| 16 | #else |
| 17 | #include "vendor/gl.h"cxx . . $ `<file>/irr/src/vendor/gl.h`/ |
| 18 | #endif |
| 19 | |
| 20 | #define GL_FRAMEBUFFER_INCOMPLETE_FORMATScxx . . $ `irr/src/COpenGLCommon.h:20:9`! GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT |
| 21 | #define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONScxx . . $ `irr/src/COpenGLCommon.h:21:9`! GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT |
| 22 | |
| 23 | // To check if this header is in the current compile unit (different GL driver implementations use different "GLCommon" headers in Irrlicht) |
| 24 | #define IRR_COMPILE_GL_COMMONcxx . . $ `irr/src/COpenGLCommon.h:24:9`! |
| 25 | |
| 26 | // macro used with COpenGLDriver |
| 27 | #define TEST_GL_ERRORcxx . . $ `irr/src/COpenGLCommon.h:27:9`!(cls) (cls)->testGLError(__LINE__) |
| 28 | |
| 29 | namespace videocxx . . $ video/ |
| 30 | { |
| 31 | |
| 32 | // Forward declarations. |
| 33 | |
| 34 | class COpenGLCoreFeaturecxx . . $ video/COpenGLCoreFeature#; |
| 35 | |
| 36 | template <class TOpenGLDriver> |
| 37 | class COpenGLCoreTexturecxx . . $ video/COpenGLCoreTexture#; |
| 38 | |
| 39 | template <class TOpenGLDriver, class TOpenGLTexture> |
| 40 | class COpenGLCoreRenderTargetcxx . . $ video/COpenGLCoreRenderTarget#; |
| 41 | |
| 42 | template <class TOpenGLDriver, class TOpenGLTexture> |
| 43 | class COpenGLCoreCacheHandlercxx . . $ video/COpenGLCoreCacheHandler#; |
| 44 | |
| 45 | class COpenGLDrivercxx . . $ video/COpenGLDriver#; |
| 46 | typedef COpenGLCoreTexturecxx . . $ video/COpenGLCoreTexture#<COpenGLDrivercxx . . $ video/COpenGLDriver#> COpenGLTexturecxx . . $ video/COpenGLTexture#; |
| 47 | typedef COpenGLCoreRenderTargetcxx . . $ video/COpenGLCoreRenderTarget#<COpenGLDrivercxx . . $ video/COpenGLDriver#, COpenGLTexturecxx . . $ video/COpenGLTexture#> COpenGLRenderTargetcxx . . $ video/COpenGLRenderTarget#; |
| 48 | class COpenGLCacheHandlercxx . . $ video/COpenGLCacheHandler#; |
| 49 | |
| 50 | } |
| 51 | |
| 52 | #endif |