mirror of
https://github.com/minetest/irrlicht.git
synced 2024-12-26 02:30:31 +01:00
f5c6d3e945
find -type f | # list all regular files grep -E '\.(h|cpp|mm)$' | # filter for source files grep -v '/mt_' | # filter out generated files grep -v '/vendor/' | # and vendored GL grep -v '/test/image_loader_test.cpp' | # and this file (has giant literals arrays) xargs -n 1 -P $(nproc) clang-format -i # reformat everything Co-authored-by: numzero <numzer0@yandex.ru>
49 lines
1.2 KiB
C++
49 lines
1.2 KiB
C++
// 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_
|
|
|
|
#if defined(_IRR_COMPILE_WITH_SDL_DEVICE_) && defined(IRR_PREFER_SDL_GL_HEADER)
|
|
#include <SDL_video.h>
|
|
#include <SDL_opengl.h>
|
|
#else
|
|
#include "vendor/gl.h"
|
|
#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
|
|
{
|
|
|
|
// Forward declarations.
|
|
|
|
class COpenGLCoreFeature;
|
|
|
|
template <class TOpenGLDriver>
|
|
class COpenGLCoreTexture;
|
|
|
|
template <class TOpenGLDriver, class TOpenGLTexture>
|
|
class COpenGLCoreRenderTarget;
|
|
|
|
template <class TOpenGLDriver, class TOpenGLTexture>
|
|
class COpenGLCoreCacheHandler;
|
|
|
|
class COpenGLDriver;
|
|
typedef COpenGLCoreTexture<COpenGLDriver> COpenGLTexture;
|
|
typedef COpenGLCoreRenderTarget<COpenGLDriver, COpenGLTexture> COpenGLRenderTarget;
|
|
class COpenGLCacheHandler;
|
|
|
|
}
|
|
}
|
|
|
|
#endif
|