UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
OpenGLPlatform.h
Go to the documentation of this file.
1
// Copyright Epic Games, Inc. All Rights Reserved.
2
3
#pragma once
4
5
#include "
HAL/PreprocessorHelpers.h
"
6
7
#include COMPILED_PLATFORM_HEADER(OpenGLPlatform.h)
8
9
using
UGLsync
=
GLsync
;
10
12
#ifndef GL_HALF_FLOAT
13
#define GL_HALF_FLOAT 0x140B
14
#endif
15
16
#ifndef GL_RGBA16F
17
#define GL_RGBA16F 0x881A
18
#endif
19
22
// http://www.opengl.org/registry/specs/EXT/texture_compression_s3tc.txt
23
#if !defined(GL_EXT_texture_compression_s3tc)
24
#define GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0
25
#define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1
26
#define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT 0x83F2
27
#define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT 0x83F3
28
#endif
29
30
// http://www.opengl.org/registry/specs/EXT/texture_sRGB.txt
31
#if !defined(GL_EXT_texture_sRGB)
32
#define GL_SRGB_EXT 0x8C40
33
#define GL_SRGB8_EXT 0x8C41
34
#define GL_SRGB_ALPHA_EXT 0x8C42
35
#define GL_SRGB8_ALPHA8_EXT 0x8C43
36
#define GL_SLUMINANCE_ALPHA_EXT 0x8C44
37
#define GL_SLUMINANCE8_ALPHA8_EXT 0x8C45
38
#define GL_SLUMINANCE_EXT 0x8C46
39
#define GL_SLUMINANCE8_EXT 0x8C47
40
#define GL_COMPRESSED_SRGB_EXT 0x8C48
41
#define GL_COMPRESSED_SRGB_ALPHA_EXT 0x8C49
42
#define GL_COMPRESSED_SLUMINANCE_EXT 0x8C4A
43
#define GL_COMPRESSED_SLUMINANCE_ALPHA_EXT 0x8C4B
44
#define GL_COMPRESSED_SRGB_S3TC_DXT1_EXT 0x8C4C
45
#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT 0x8C4D
46
#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT 0x8C4E
47
#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT 0x8C4F
48
#endif
49
50
// http://www.opengl.org/registry/specs/ARB/texture_compression_rgtc.txt
51
#if !defined(GL_ARB_texture_compression_rgtc)
52
#define GL_COMPRESSED_RED_RGTC1 0x8DBB
53
#define GL_COMPRESSED_SIGNED_RED_RGTC1 0x8DBC
54
#define GL_COMPRESSED_RG_RGTC2 0x8DBD
55
#define GL_COMPRESSED_SIGNED_RG_RGTC2 0x8DBE
56
#endif
57
58
/* http://www.khronos.org/registry/gles/extensions/NV/NV_sRGB_formats.txt */
59
#if !defined(GL_NV_sRGB_formats)
60
#define GL_SLUMINANCE_NV 0x8C46
61
#define GL_SLUMINANCE_ALPHA_NV 0x8C44
62
#define GL_SRGB8_NV 0x8C41
63
#define GL_SLUMINANCE8_NV 0x8C47
64
#define GL_SLUMINANCE8_ALPHA8_NV 0x8C45
65
#define GL_COMPRESSED_SRGB_S3TC_DXT1_NV 0x8C4C
66
#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_NV 0x8C4D
67
#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_NV 0x8C4E
68
#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_NV 0x8C4F
69
#endif
70
71
// http://www.opengl.org/registry/specs/KHR/texture_compression_astc_ldr.txt
72
#if !defined(GL_KHR_texture_compression_astc_ldr)
73
#define GL_COMPRESSED_RGBA_ASTC_4x4_KHR 0x93B0
74
#define GL_COMPRESSED_RGBA_ASTC_5x4_KHR 0x93B1
75
#define GL_COMPRESSED_RGBA_ASTC_5x5_KHR 0x93B2
76
#define GL_COMPRESSED_RGBA_ASTC_6x5_KHR 0x93B3
77
#define GL_COMPRESSED_RGBA_ASTC_6x6_KHR 0x93B4
78
#define GL_COMPRESSED_RGBA_ASTC_8x5_KHR 0x93B5
79
#define GL_COMPRESSED_RGBA_ASTC_8x6_KHR 0x93B6
80
#define GL_COMPRESSED_RGBA_ASTC_8x8_KHR 0x93B7
81
#define GL_COMPRESSED_RGBA_ASTC_10x5_KHR 0x93B8
82
#define GL_COMPRESSED_RGBA_ASTC_10x6_KHR 0x93B9
83
#define GL_COMPRESSED_RGBA_ASTC_10x8_KHR 0x93BA
84
#define GL_COMPRESSED_RGBA_ASTC_10x10_KHR 0x93BB
85
#define GL_COMPRESSED_RGBA_ASTC_12x10_KHR 0x93BC
86
#define GL_COMPRESSED_RGBA_ASTC_12x12_KHR 0x93BD
87
88
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR 0x93D0
89
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR 0x93D1
90
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR 0x93D2
91
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR 0x93D3
92
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR 0x93D4
93
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR 0x93D5
94
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR 0x93D6
95
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR 0x93D7
96
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR 0x93D8
97
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR 0x93D9
98
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR 0x93DA
99
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR 0x93DB
100
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR 0x93DC
101
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR 0x93DD
102
#endif
103
104
#if !defined(GL_TESS_EVALUATION_SHADER)
105
#define GL_TESS_EVALUATION_SHADER 0x8E87
106
#endif
107
#if !defined(GL_TESS_CONTROL_SHADER)
108
#define GL_TESS_CONTROL_SHADER 0x8E88
109
#endif
110
#if !defined(GL_PATCHES)
111
#define GL_PATCHES 0x000E
112
#endif
113
#if !defined(GL_PATCH_VERTICES)
114
#define GL_PATCH_VERTICES 0x8E72
115
#endif
116
#if !defined(GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS)
117
#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS 0x8C29
118
#endif
119
#if !defined(GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS)
120
#define GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS 0x8E81
121
#endif
122
#if !defined(GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS)
123
#define GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS 0x8E82
124
#endif
125
#if !defined(GL_READ_WRITE)
126
#define GL_READ_WRITE 0x88BA
127
#endif
128
#if !defined(GL_ALL_BARRIER_BITS)
129
#define GL_ALL_BARRIER_BITS 0xFFFFFFFF
130
#endif
131
#if !defined(GL_TEXTURE_CUBE_MAP_ARRAY)
132
#define GL_TEXTURE_CUBE_MAP_ARRAY 0x9009
133
#endif
134
#if !defined(GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER)
135
#define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER 0x84F0
136
#endif
137
#if !defined(GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER)
138
#define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER 0x84F1
139
#endif
140
#if !defined(GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER)
141
#define GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER 0x90EC
142
#endif
143
#ifndef GL_ARB_seamless_cube_map
144
#define GL_TEXTURE_CUBE_MAP_SEAMLESS 0x884F
145
#endif
146
#ifndef GL_TIME_ELAPSED_EXT
147
#define GL_TIME_ELAPSED_EXT 0x88BF
148
#endif
149
#ifndef GL_TIMESTAMP_EXT
150
#define GL_TIMESTAMP_EXT 0x8E28
151
#endif
152
#ifndef GL_DISPATCH_INDIRECT_BUFFER
153
#define GL_DISPATCH_INDIRECT_BUFFER 0x90EE
154
#endif
155
#ifndef GL_DRAW_INDIRECT_BUFFER
156
#define GL_DRAW_INDIRECT_BUFFER 0x8F3F
157
#endif
158
#ifndef GL_MAP_WRITE_BIT
159
#define GL_MAP_WRITE_BIT 0x0002
160
#endif
161
#ifndef GL_MAP_PERSISTENT_BIT
162
#define GL_MAP_PERSISTENT_BIT 0x0040
163
#endif
164
#ifndef GL_MAP_COHERENT_BIT
165
#define GL_MAP_COHERENT_BIT 0x0080
166
#endif
167
#ifndef GL_DEPTH_BOUNDS_TEST_EXT
168
#define GL_DEPTH_BOUNDS_TEST_EXT 0x8890
169
#endif
170
#ifndef GL_DEPTH_STENCIL_TEXTURE_MODE
171
#define GL_DEPTH_STENCIL_TEXTURE_MODE 0x90EA
172
#endif
173
#ifndef GL_TEXTURE_SWIZZLE_R
174
#define GL_TEXTURE_SWIZZLE_R 0x8E42
175
#endif
176
#ifndef GL_TEXTURE_SWIZZLE_G
177
#define GL_TEXTURE_SWIZZLE_G 0x8E43
178
#endif
179
#ifndef GL_TEXTURE_SWIZZLE_B
180
#define GL_TEXTURE_SWIZZLE_B 0x8E44
181
#endif
182
#ifndef GL_TEXTURE_SWIZZLE_A
183
#define GL_TEXTURE_SWIZZLE_A 0x8E45
184
#endif
185
#ifndef GL_RED
186
#define GL_RED 0x1903
187
#endif
188
#ifndef GL_BLUE
189
#define GL_BLUE 0x1905
190
#endif
191
#ifndef GL_STENCIL_INDEX
192
#define GL_STENCIL_INDEX 0x1901
193
#endif
194
#ifndef GL_RGBA_INTEGER
195
#define GL_RGBA_INTEGER 0x8D99
196
#endif
197
198
#ifndef GL_ARB_compute_shader
199
#define GL_COMPUTE_SHADER 0x91B9
200
#define GL_MAX_COMPUTE_UNIFORM_BLOCKS 0x91BB
201
#define GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS 0x91BC
202
#define GL_MAX_COMPUTE_IMAGE_UNIFORMS 0x91BD
203
#define GL_MAX_COMPUTE_SHARED_MEMORY_SIZE 0x8262
204
#define GL_MAX_COMPUTE_UNIFORM_COMPONENTS 0x8263
205
#define GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS 0x8264
206
#define GL_MAX_COMPUTE_ATOMIC_COUNTERS 0x8265
207
#define GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS 0x8266
208
#define GL_MAX_COMPUTE_LOCAL_INVOCATIONS 0x90EB
209
#define GL_MAX_COMPUTE_WORK_GROUP_COUNT 0x91BE
210
#define GL_MAX_COMPUTE_WORK_GROUP_SIZE 0x91BF
211
#define GL_COMPUTE_LOCAL_WORK_SIZE 0x8267
212
#define GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER 0x90EC
213
#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER 0x90ED
214
#define GL_DISPATCH_INDIRECT_BUFFER 0x90EE
215
#define GL_DISPATCH_INDIRECT_BUFFER_BINDING 0x90EF
216
#define GL_COMPUTE_SHADER_BIT 0x00000020
217
#endif
218
219
#ifndef GL_GPU_DISJOINT_EXT
220
#define GL_GPU_DISJOINT_EXT 0x8FBB
221
#endif
222
223
#ifndef GL_APPLE_client_storage
224
#define GL_UNPACK_CLIENT_STORAGE_APPLE 0x85B2
225
#endif
226
227
#ifndef GL_APPLE_texture_range
228
#define GL_TEXTURE_RANGE_LENGTH_APPLE 0x85B7
229
#define GL_TEXTURE_RANGE_POINTER_APPLE 0x85B8
230
#define GL_TEXTURE_STORAGE_HINT_APPLE 0x85BC
231
#define GL_TEXTURE_MINIMIZE_STORAGE_APPLE 0x85B6
232
#define GL_STORAGE_PRIVATE_APPLE 0x85BD
233
#define GL_STORAGE_CACHED_APPLE 0x85BE
234
#define GL_STORAGE_SHARED_APPLE 0x85BF
235
#endif
236
237
#ifndef TEXTURE_ASTC_DECODE_PRECISION_EXT
238
#define TEXTURE_ASTC_DECODE_PRECISION_EXT 0x8F69
239
#endif
240
241
#ifndef GL_EXT_shader_pixel_local_storage
242
#define GL_MAX_SHADER_PIXEL_LOCAL_STORAGE_FAST_SIZE_EXT 0x8F63
243
#define GL_MAX_SHADER_PIXEL_LOCAL_STORAGE_SIZE_EXT 0x8F67
244
#define GL_SHADER_PIXEL_LOCAL_STORAGE_EXT 0x8F64
245
#endif
UGLsync
GLsync UGLsync
Definition
AndroidOpenGLPlatform.h:11
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
PreprocessorHelpers.h
Engine
Source
Runtime
OpenGLDrv
Private
OpenGLPlatform.h
Generated by
1.9.8