Gamp v0.0.7-54-gccdc599
Gamp: Graphics, Audio, Multimedia and Processing
Loading...
Searching...
No Matches
GLExtensions.hpp
Go to the documentation of this file.
1/*
2 * Author: Sven Gothel <sgothel@jausoft.com>
3 * Copyright Gothel Software e.K.
4 *
5 * SPDX-License-Identifier: MIT
6 *
7 * This Source Code Form is subject to the terms of the MIT License
8 * If a copy of the MIT was not distributed with this file,
9 * you can obtain one at https://opensource.org/license/mit/.
10 */
11#ifndef GAMP_RENDER_GL_GLEXTENSIONS_HPP_
12#define GAMP_RENDER_GL_GLEXTENSIONS_HPP_
13
14#include <string_view>
15
17
19 /** \addtogroup Gamp_GL
20 *
21 * @{
22 */
23
24 /**
25 * Class holding OpenGL extension strings, commonly used by Gamp's implementation.
26 */
28 public:
29 constexpr static std::string_view VERSION_1_2 = "GL_VERSION_1_2";
30 constexpr static std::string_view VERSION_1_4 = "GL_VERSION_1_4";
31 constexpr static std::string_view VERSION_1_5 = "GL_VERSION_1_5";
32 constexpr static std::string_view VERSION_2_0 = "GL_VERSION_2_0";
33
34 constexpr static std::string_view GL_KHR_debug_ = "GL_KHR_debug";
35 constexpr static std::string_view ARB_debug_output = "GL_ARB_debug_output";
36 constexpr static std::string_view AMD_debug_output = "GL_AMD_debug_output";
37
38 constexpr static std::string_view ARB_framebuffer_object = "GL_ARB_framebuffer_object";
39 constexpr static std::string_view OES_framebuffer_object = "GL_OES_framebuffer_object";
40 constexpr static std::string_view EXT_framebuffer_object = "GL_EXT_framebuffer_object";
41 constexpr static std::string_view EXT_framebuffer_blit = "GL_EXT_framebuffer_blit";
42 constexpr static std::string_view EXT_framebuffer_multisample = "GL_EXT_framebuffer_multisample";
43 constexpr static std::string_view EXT_packed_depth_stencil = "GL_EXT_packed_depth_stencil";
44 constexpr static std::string_view OES_depth24 = "GL_OES_depth24";
45 constexpr static std::string_view OES_depth32 = "GL_OES_depth32";
46 constexpr static std::string_view OES_packed_depth_stencil = "GL_OES_packed_depth_stencil";
47 constexpr static std::string_view NV_fbo_color_attachments = "GL_NV_fbo_color_attachments";
48
49 constexpr static std::string_view ARB_ES2_compatibility = "GL_ARB_ES2_compatibility";
50 constexpr static std::string_view ARB_ES3_compatibility = "GL_ARB_ES3_compatibility";
51 constexpr static std::string_view ARB_ES3_1_compatibility = "GL_ARB_ES3_1_compatibility";
52 constexpr static std::string_view ARB_ES3_2_compatibility = "GL_ARB_ES3_2_compatibility";
53
54 constexpr static std::string_view EXT_abgr = "GL_EXT_abgr";
55 constexpr static std::string_view OES_rgb8_rgba8 = "GL_OES_rgb8_rgba8";
56 constexpr static std::string_view OES_stencil1 = "GL_OES_stencil1";
57 constexpr static std::string_view OES_stencil4 = "GL_OES_stencil4";
58 constexpr static std::string_view OES_stencil8 = "GL_OES_stencil8";
59 constexpr static std::string_view APPLE_float_pixels = "GL_APPLE_float_pixels";
60
61 constexpr static std::string_view ARB_texture_non_power_of_two = "GL_ARB_texture_non_power_of_two";
62 constexpr static std::string_view ARB_texture_rectangle = "GL_ARB_texture_rectangle";
63 constexpr static std::string_view EXT_texture_rectangle = "GL_EXT_texture_rectangle";
64 constexpr static std::string_view NV_texture_rectangle = "GL_NV_texture_rectangle";
65 constexpr static std::string_view EXT_texture_format_BGRA8888 = "GL_EXT_texture_format_BGRA8888";
66 constexpr static std::string_view IMG_texture_format_BGRA8888 = "GL_IMG_texture_format_BGRA8888";
67 constexpr static std::string_view EXT_texture_compression_s3tc = "GL_EXT_texture_compression_s3tc";
68 constexpr static std::string_view NV_texture_compression_vtc = "GL_NV_texture_compression_vtc";
69 constexpr static std::string_view SGIS_generate_mipmap = "GL_SGIS_generate_mipmap";
70 constexpr static std::string_view OES_read_format = "GL_OES_read_format";
71 constexpr static std::string_view OES_single_precision = "GL_OES_single_precision";
72 constexpr static std::string_view OES_EGL_image_external = "GL_OES_EGL_image_external";
73 /** Required to be requested for OpenGL ES 2.0, <i>not</i> ES 3.0! */
74 constexpr static std::string_view OES_standard_derivatives = "GL_OES_standard_derivatives";
75
76 constexpr static std::string_view ARB_gpu_shader_fp64 = "GL_ARB_gpu_shader_fp64";
77 constexpr static std::string_view ARB_shader_objects = "GL_ARB_shader_objects";
78 constexpr static std::string_view ARB_geometry_shader4 = "GL_ARB_geometry_shader4";
79
80 //
81 // Aliased GLX/WGL/.. extensions
82 //
83
84 constexpr static std::string_view ARB_pixel_format = "GL_ARB_pixel_format";
85 constexpr static std::string_view ARB_pbuffer = "GL_ARB_pbuffer";
86 };
87
88 /**@}*/
89
90} // namespace gamp::render::gl
91
92#endif /* GAMP_RENDER_GL_GLEXTENSIONS_HPP_ */
Class holding OpenGL extension strings, commonly used by Gamp's implementation.
static constexpr std::string_view ARB_gpu_shader_fp64
static constexpr std::string_view NV_texture_compression_vtc
static constexpr std::string_view ARB_texture_rectangle
static constexpr std::string_view VERSION_2_0
static constexpr std::string_view OES_framebuffer_object
static constexpr std::string_view EXT_framebuffer_multisample
static constexpr std::string_view IMG_texture_format_BGRA8888
static constexpr std::string_view SGIS_generate_mipmap
static constexpr std::string_view OES_packed_depth_stencil
static constexpr std::string_view ARB_geometry_shader4
static constexpr std::string_view ARB_ES3_compatibility
static constexpr std::string_view ARB_pixel_format
static constexpr std::string_view OES_single_precision
static constexpr std::string_view ARB_shader_objects
static constexpr std::string_view EXT_texture_compression_s3tc
static constexpr std::string_view OES_EGL_image_external
static constexpr std::string_view ARB_debug_output
static constexpr std::string_view APPLE_float_pixels
static constexpr std::string_view EXT_texture_format_BGRA8888
static constexpr std::string_view EXT_framebuffer_blit
static constexpr std::string_view ARB_ES2_compatibility
static constexpr std::string_view ARB_texture_non_power_of_two
static constexpr std::string_view ARB_ES3_2_compatibility
static constexpr std::string_view OES_depth24
static constexpr std::string_view ARB_pbuffer
static constexpr std::string_view OES_stencil1
static constexpr std::string_view ARB_ES3_1_compatibility
static constexpr std::string_view VERSION_1_5
static constexpr std::string_view NV_texture_rectangle
static constexpr std::string_view VERSION_1_4
static constexpr std::string_view EXT_packed_depth_stencil
static constexpr std::string_view OES_rgb8_rgba8
static constexpr std::string_view EXT_framebuffer_object
static constexpr std::string_view OES_read_format
static constexpr std::string_view GL_KHR_debug_
static constexpr std::string_view OES_standard_derivatives
Required to be requested for OpenGL ES 2.0, not ES 3.0!
static constexpr std::string_view EXT_abgr
static constexpr std::string_view OES_stencil8
static constexpr std::string_view OES_stencil4
static constexpr std::string_view OES_depth32
static constexpr std::string_view ARB_framebuffer_object
static constexpr std::string_view AMD_debug_output
static constexpr std::string_view NV_fbo_color_attachments
static constexpr std::string_view EXT_texture_rectangle
static constexpr std::string_view VERSION_1_2