Welcome to mirror list, hosted at ThFree Co, Russian Federation.

glconstants.hpp « drape - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ec226720e94343baecc4fca4630345af2ce13a13 (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
#pragma once

#include "std/cstdint.hpp"

typedef uint32_t glConst;

namespace gl_const
{
extern const glConst GLUnpackAlignment;

/// 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;

/// VBO Access
extern const glConst GLWriteOnly;

/// 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;

/// 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;

/// 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 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;

/// 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;

/// Program object parameter names
extern const glConst GLActiveUniforms;

} // namespace GLConst