2023-10-03 20:37:00 +02:00
|
|
|
// 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_OPENGL_
|
|
|
|
|
2024-02-17 00:51:36 +01:00
|
|
|
#if defined(_IRR_COMPILE_WITH_SDL_DEVICE_) && defined(IRR_PREFER_SDL_GL_HEADER)
|
2024-03-20 19:35:52 +01:00
|
|
|
#include <SDL_video.h>
|
|
|
|
#include <SDL_opengl.h>
|
2023-10-03 20:37:00 +02:00
|
|
|
#else
|
2024-03-20 19:35:52 +01:00
|
|
|
#include "vendor/gl.h"
|
2023-10-03 20:37:00 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#define GL_FRAMEBUFFER_INCOMPLETE_FORMATS GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT
|
|
|
|
#define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT
|
|
|
|
|
|
|
|
// To check if this header is in the current compile unit (different GL driver implementations use different "GLCommon" headers in Irrlicht)
|
|
|
|
#define IRR_COMPILE_GL_COMMON
|
|
|
|
|
|
|
|
namespace irr
|
|
|
|
{
|
|
|
|
namespace video
|
|
|
|
{
|
|
|
|
|
2024-03-20 19:35:52 +01:00
|
|
|
// Forward declarations.
|
2023-10-03 20:37:00 +02:00
|
|
|
|
2024-03-20 19:35:52 +01:00
|
|
|
class COpenGLCoreFeature;
|
2023-10-03 20:37:00 +02:00
|
|
|
|
2024-03-20 19:35:52 +01:00
|
|
|
template <class TOpenGLDriver>
|
|
|
|
class COpenGLCoreTexture;
|
2023-10-03 20:37:00 +02:00
|
|
|
|
2024-03-20 19:35:52 +01:00
|
|
|
template <class TOpenGLDriver, class TOpenGLTexture>
|
|
|
|
class COpenGLCoreRenderTarget;
|
2023-10-03 20:37:00 +02:00
|
|
|
|
2024-03-20 19:35:52 +01:00
|
|
|
template <class TOpenGLDriver, class TOpenGLTexture>
|
|
|
|
class COpenGLCoreCacheHandler;
|
2023-10-03 20:37:00 +02:00
|
|
|
|
2024-03-20 19:35:52 +01:00
|
|
|
class COpenGLDriver;
|
|
|
|
typedef COpenGLCoreTexture<COpenGLDriver> COpenGLTexture;
|
|
|
|
typedef COpenGLCoreRenderTarget<COpenGLDriver, COpenGLTexture> COpenGLRenderTarget;
|
|
|
|
class COpenGLCacheHandler;
|
2023-10-03 20:37:00 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|