blob: bd7d524899d21cb042cb5d306fe534d001c321aa (
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
|
#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
namespace gl_const
{
const glConst GLUnpackAlignment = GL_UNPACK_ALIGNMENT;
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 GLWriteOnly = WRITE_ONLY_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 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 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;
} // namespace GLConst
|