mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-15 23:10:26 +01:00
2bf1d12353
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>
58 lines
1.2 KiB
C++
58 lines
1.2 KiB
C++
// Copyright (C) 2023 Vitaliy Lobachevskiy
|
|
// 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
|
|
|
|
#include "irrTypes.h"
|
|
// even though we have mt_opengl.h our driver code still uses GL_* constants
|
|
#if defined(_IRR_COMPILE_WITH_SDL_DEVICE_)
|
|
#include <SDL_video.h>
|
|
#include <SDL_opengl.h>
|
|
#else
|
|
#include "vendor/gl.h"
|
|
#endif
|
|
|
|
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 COpenGL3DriverBase;
|
|
typedef COpenGLCoreTexture<COpenGL3DriverBase> COpenGL3Texture;
|
|
typedef COpenGLCoreRenderTarget<COpenGL3DriverBase, COpenGL3Texture> COpenGL3RenderTarget;
|
|
typedef COpenGLCoreCacheHandler<COpenGL3DriverBase, COpenGL3Texture> COpenGL3CacheHandler;
|
|
|
|
enum class OpenGLSpec : u8
|
|
{
|
|
Core,
|
|
Compat,
|
|
ES,
|
|
// WebGL, // TODO
|
|
};
|
|
|
|
struct OpenGLVersion
|
|
{
|
|
OpenGLSpec Spec;
|
|
u8 Major;
|
|
u8 Minor;
|
|
u8 Release;
|
|
};
|
|
|
|
}
|
|
}
|