blob: 18b9c49d0a871adc06dab5f638065c4bb2b279d0 (
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
|
#pragma once
#include "std/cstdint.hpp"
typedef uint32_t glConst;
namespace gl_const
{
extern const glConst GLUnpackAlignment;
extern const glConst GLRenderer;
extern const glConst GLVendor;
extern const glConst GLVersion;
/// Clear bits
extern const glConst GLColorBit;
extern const glConst GLDepthBit;
extern const glConst GLStencilBit;
/// Hardware specific params
extern const glConst GLMaxFragmentTextures;
extern const glConst GLMaxVertexTextures;
extern const glConst GLMaxTextureSize;
/// Buffer targets
extern const glConst GLArrayBuffer;
extern const glConst GLElementArrayBuffer;
extern const glConst GLPixelBufferWrite;
/// Buffer params
extern const glConst GLBufferSize;
extern const glConst GLBufferUsage;
/// VBO Access
extern const glConst GLWriteOnly;
extern const glConst GLReadOnly;
/// MapBufferRange
extern const glConst GLWriteBufferBit;
extern const glConst GLReadBufferBit;
extern const glConst GLInvalidateRange;
extern const glConst GLInvalidateBuffer;
extern const glConst GLFlushExplicit;
extern const glConst GLUnsynchronized;
/// BufferUsage
extern const glConst GLStaticDraw;
extern const glConst GLStreamDraw;
extern const glConst GLDynamicDraw;
/// ShaderType
extern const glConst GLVertexShader;
extern const glConst GLFragmentShader;
extern const glConst GLCurrentProgram;
/// Texture layouts
extern const glConst GLRGBA;
extern const glConst GLRGB;
extern const glConst GLAlpha;
extern const glConst GLLuminance;
extern const glConst GLAlphaLuminance;
extern const glConst GLDepthComponent;
extern const glConst GLDepthStencil;
/// Texture layout size
extern const glConst GLRGBA8;
extern const glConst GLRGBA4;
extern const glConst GLAlpha8;
extern const glConst GLLuminance8;
extern const glConst GLAlphaLuminance8;
extern const glConst GLAlphaLuminance4;
extern const glConst GLRed;
extern const glConst GLRedGreen;
/// Pixel type for texture upload
extern const glConst GL8BitOnChannel;
extern const glConst GL4BitOnChannel;
/// Texture targets
extern const glConst GLTexture2D;
/// Texture uniform blocks
extern const glConst GLTexture0;
/// Texture param names
extern const glConst GLMinFilter;
extern const glConst GLMagFilter;
extern const glConst GLWrapS;
extern const glConst GLWrapT;
/// Texture Wrap Modes
extern const glConst GLRepeate;
extern const glConst GLMirroredRepeate;
extern const glConst GLClampToEdge;
/// Texture Filter Modes
extern const glConst GLLinear;
extern const glConst GLNearest;
/// OpenGL types
extern const glConst GLByteType;
extern const glConst GLUnsignedByteType;
extern const glConst GLShortType;
extern const glConst GLUnsignedShortType;
extern const glConst GLIntType;
extern const glConst GLUnsignedIntType;
extern const glConst GLFloatType;
extern const glConst GLUnsignedInt24_8Type;
extern const glConst GLFloatVec2;
extern const glConst GLFloatVec3;
extern const glConst GLFloatVec4;
extern const glConst GLIntVec2;
extern const glConst GLIntVec3;
extern const glConst GLIntVec4;
extern const glConst GLFloatMat4;
/// Blend Functions
extern const glConst GLAddBlend;
extern const glConst GLSubstractBlend;
extern const glConst GLReverseSubstrBlend;
/// Blend Factors
extern const glConst GLZero;
extern const glConst GLOne;
extern const glConst GLSrcColor;
extern const glConst GLOneMinusSrcColor;
extern const glConst GLDstColor;
extern const glConst GLOneMinusDstColor;
extern const glConst GLSrcAlfa;
extern const glConst GLOneMinusSrcAlfa;
extern const glConst GLDstAlfa;
extern const glConst GLOneMinusDstAlfa;
/// OpenGL states
extern const glConst GLDepthTest;
extern const glConst GLBlending;
extern const glConst GLCullFace;
extern const glConst GLScissorTest;
extern const glConst GLStencilTest;
/// Triangle faces order
extern const glConst GLClockwise;
extern const glConst GLCounterClockwise;
/// Triangle face
extern const glConst GLFront;
extern const glConst GLBack;
extern const glConst GLFrontAndBack;
/// OpenGL depth functions
extern const glConst GLNever;
extern const glConst GLLess;
extern const glConst GLEqual;
extern const glConst GLLessOrEqual;
extern const glConst GLGreat;
extern const glConst GLNotEqual;
extern const glConst GLGreatOrEqual;
extern const glConst GLAlways;
/// OpenGL stencil functions
extern const glConst GLKeep;
extern const glConst GLIncr;
extern const glConst GLDecr;
extern const glConst GLInvert;
extern const glConst GLReplace;
extern const glConst GLIncrWrap;
extern const glConst GLDecrWrap;
/// Program object parameter names
extern const glConst GLActiveUniforms;
/// Draw primitives
extern const glConst GLLines;
extern const glConst GLLineStrip;
extern const glConst GLTriangles;
extern const glConst GLTriangleStrip;
/// Framebuffer attachment points
extern const glConst GLColorAttachment;
extern const glConst GLDepthAttachment;
extern const glConst GLStencilAttachment;
extern const glConst GLDepthStencilAttachment;
/// Framebuffer status
extern const glConst GLFramebufferComplete;
} // namespace GLConst
|