blob: e934c7be716ee4e1339d78b0321870c766727caa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
|
#include "drape/glconstants.hpp"
#include "drape/glIncludes.hpp"
#if !defined(GL_RGBA8_OES)
#define GL_RGBA8_OES 0x8058
#endif
#if !defined(GL_RGBA4_OES)
#define GL_RGBA4_OES 0x8056
#endif
#if !defined(GL_ALPHA8_OES)
#define GL_ALPHA8_OES 0x803C
#endif
#if !defined(GL_LUMINANCE8_OES)
#define GL_LUMINANCE8_OES 0x8040
#endif
#if !defined(GL_LUMINANCE8_ALPHA8_OES)
#define GL_LUMINANCE8_ALPHA8_OES 0x8045
#endif
#if !defined(GL_LUMINANCE8_ALPHA4_OES)
#define GL_LUMINANCE8_ALPHA4_OES 0x8043
#endif
#if defined(GL_WRITE_ONLY)
#define WRITE_ONLY_DEF GL_WRITE_ONLY
#elif defined(GL_WRITE_ONLY_OES)
#define WRITE_ONLY_DEF GL_WRITE_ONLY_OES
#else
#define WRITE_ONLY_DEF 0x88B9
#endif
#if defined(GL_READ_ONLY)
#define READ_ONLY_DEF GL_READ_ONLY
#else
#define READ_ONLY_DEF 0x88B8
#endif
#if defined(GL_MAP_READ_BIT_EXT)
#define READ_BIT_DEF GL_MAP_READ_BIT_EXT
#else
#define READ_BIT_DEF 0x0001
#endif
#if defined(GL_MAP_WRITE_BIT_EXT)
#define WRITE_BIT_DEF GL_MAP_WRITE_BIT_EXT
#else
#define WRITE_BIT_DEF 0x0002
#endif
#if defined(GL_MAP_INVALIDATE_RANGE_BIT_EXT)
#define INVALIDATE_RANGE_BIT_DEF GL_MAP_INVALIDATE_RANGE_BIT_EXT
#else
#define INVALIDATE_RANGE_BIT_DEF 0x0004
#endif
#if defined(GL_MAP_INVALIDATE_BUFFER_BIT_EXT)
#define INVALIDATE_BUFFER_BIT_DEF GL_MAP_INVALIDATE_BUFFER_BIT_EXT
#else
#define INVALIDATE_BUFFER_BIT_DEF 0x0008
#endif
#if defined(GL_MAP_FLUSH_EXPLICIT_BIT_EXT)
#define FLUSH_EXPLICIT_BIT_DEF GL_MAP_FLUSH_EXPLICIT_BIT_EXT
#else
#define FLUSH_EXPLICIT_BIT_DEF 0x0010
#endif
#if defined(GL_MAP_UNSYNCHRONIZED_BIT_EXT)
#define UNSYNCHRONIZED_BIT_DEF GL_MAP_UNSYNCHRONIZED_BIT_EXT
#else
#define UNSYNCHRONIZED_BIT_DEF 0x0020
#endif
namespace gl_const
{
const glConst GLUnpackAlignment = GL_UNPACK_ALIGNMENT;
const glConst GLRenderer = GL_RENDERER;
const glConst GLVendor = GL_VENDOR;
const glConst GLVersion = GL_VERSION;
const glConst GLMaxFragmentTextures = GL_MAX_TEXTURE_IMAGE_UNITS;
const glConst GLMaxVertexTextures = GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS;
const glConst GLMaxTextureSize = GL_MAX_TEXTURE_SIZE;
const glConst GLArrayBuffer = GL_ARRAY_BUFFER;
const glConst GLElementArrayBuffer = GL_ELEMENT_ARRAY_BUFFER;
const glConst GLBufferSize = GL_BUFFER_SIZE;
const glConst GLBufferUsage = GL_BUFFER_USAGE;
const glConst GLWriteOnly = WRITE_ONLY_DEF;
const glConst GLReadOnly = READ_ONLY_DEF;
const glConst GLReadBufferBit = READ_BIT_DEF;
const glConst GLWriteBufferBit = WRITE_BIT_DEF;
const glConst GLInvalidateRange = INVALIDATE_RANGE_BIT_DEF;
const glConst GLInvalidateBuffer = INVALIDATE_BUFFER_BIT_DEF;
const glConst GLFlushExplicit = FLUSH_EXPLICIT_BIT_DEF;
const glConst GLUnsynchronized = UNSYNCHRONIZED_BIT_DEF;
const glConst GLStaticDraw = GL_STATIC_DRAW;
const glConst GLStreamDraw = GL_STREAM_DRAW;
const glConst GLDynamicDraw = GL_DYNAMIC_DRAW;
const glConst GLVertexShader = GL_VERTEX_SHADER;
const glConst GLFragmentShader = GL_FRAGMENT_SHADER;
const glConst GLCurrentProgram = GL_CURRENT_PROGRAM;
const glConst GLRGBA = GL_RGBA;
const glConst GLRGB = GL_RGB;
const glConst GLAlpha = GL_ALPHA;
const glConst GLLuminance = GL_LUMINANCE;
const glConst GLAlphaLuminance = GL_LUMINANCE_ALPHA;
const glConst GLDepthComponent = GL_DEPTH_COMPONENT;
const glConst GLRGBA8 = GL_RGBA8_OES;
const glConst GLRGBA4 = GL_RGBA4_OES;
const glConst GLAlpha8 = GL_ALPHA8_OES;
const glConst GLLuminance8 = GL_LUMINANCE8_OES;
const glConst GLAlphaLuminance8 = GL_LUMINANCE8_ALPHA8_OES;
const glConst GLAlphaLuminance4 = GL_LUMINANCE8_ALPHA4_OES;
const glConst GL8BitOnChannel = GL_UNSIGNED_BYTE;
const glConst GL4BitOnChannel = GL_UNSIGNED_SHORT_4_4_4_4;
const glConst GLTexture2D = GL_TEXTURE_2D;
const glConst GLTexture0 = GL_TEXTURE0;
const glConst GLMinFilter = GL_TEXTURE_MIN_FILTER;
const glConst GLMagFilter = GL_TEXTURE_MAG_FILTER;
const glConst GLWrapS = GL_TEXTURE_WRAP_S;
const glConst GLWrapT = GL_TEXTURE_WRAP_T;
const glConst GLRepeate = GL_REPEAT;
const glConst GLMirroredRepeate = GL_MIRRORED_REPEAT;
const glConst GLClampToEdge = GL_CLAMP_TO_EDGE;
const glConst GLLinear = GL_LINEAR;
const glConst GLNearest = GL_NEAREST;
const glConst GLByteType = GL_BYTE;
const glConst GLUnsignedByteType = GL_UNSIGNED_BYTE;
const glConst GLShortType = GL_SHORT;
const glConst GLUnsignedShortType = GL_UNSIGNED_SHORT;
const glConst GLIntType = GL_INT;
const glConst GLUnsignedIntType = GL_UNSIGNED_INT;
const glConst GLFloatType = GL_FLOAT;
const glConst GLFloatVec2 = GL_FLOAT_VEC2;
const glConst GLFloatVec3 = GL_FLOAT_VEC3;
const glConst GLFloatVec4 = GL_FLOAT_VEC4;
const glConst GLIntVec2 = GL_INT_VEC2;
const glConst GLIntVec3 = GL_INT_VEC3;
const glConst GLIntVec4 = GL_INT_VEC4;
const glConst GLFloatMat4 = GL_FLOAT_MAT4;
const glConst GLAddBlend = GL_FUNC_ADD;
const glConst GLSubstractBlend = GL_FUNC_SUBTRACT;
const glConst GLReverseSubstrBlend = GL_FUNC_REVERSE_SUBTRACT;
const glConst GLZero = GL_ZERO;
const glConst GLOne = GL_ONE;
const glConst GLSrcColor = GL_SRC_COLOR;
const glConst GLOneMinusSrcColor = GL_ONE_MINUS_SRC_COLOR;
const glConst GLDstColor = GL_DST_COLOR;
const glConst GLOneMinusDstColor = GL_ONE_MINUS_DST_COLOR;
const glConst GLSrcAlfa = GL_SRC_ALPHA;
const glConst GLOneMinusSrcAlfa = GL_ONE_MINUS_SRC_ALPHA;
const glConst GLDstAlfa = GL_DST_ALPHA;
const glConst GLOneMinusDstAlfa = GL_ONE_MINUS_DST_ALPHA;
const glConst GLDepthTest = GL_DEPTH_TEST;
const glConst GLBlending = GL_BLEND;
const glConst GLCullFace = GL_CULL_FACE;
const glConst GLScissorTest = GL_SCISSOR_TEST;
const glConst GLClockwise = GL_CW;
const glConst GLCounterClockwise = GL_CCW;
const glConst GLFront = GL_FRONT;
const glConst GLBack = GL_BACK;
const glConst GLFrontAndBack = GL_FRONT_AND_BACK;
const glConst GLNever = GL_NEVER;
const glConst GLLess = GL_LESS;
const glConst GLEqual = GL_EQUAL;
const glConst GLLessOrEqual = GL_LEQUAL;
const glConst GLGreat = GL_GREATER;
const glConst GLNotEqual = GL_NOTEQUAL;
const glConst GLGreatOrEqual = GL_GEQUAL;
const glConst GLAlways = GL_ALWAYS;
const glConst GLActiveUniforms = GL_ACTIVE_UNIFORMS;
const glConst GLLines = GL_LINES;
const glConst GLLineStrip = GL_LINE_STRIP;
const glConst GLTriangles = GL_TRIANGLES;
const glConst GLTriangleStrip = GL_TRIANGLE_STRIP;
const glConst GLColorAttachment = GL_COLOR_ATTACHMENT0;
const glConst GLDepthAttachment = GL_DEPTH_ATTACHMENT;
const glConst GLStencilAttachment = GL_STENCIL_ATTACHMENT;
const glConst GLFramebufferComplete = GL_FRAMEBUFFER_COMPLETE;
} // namespace GLConst
|