GteOpenGL.h
Go to the documentation of this file.
1 // David Eberly, Geometric Tools, Redmond WA 98052
2 // Copyright (c) 1998-2017
3 // Distributed under the Boost Software License, Version 1.0.
4 // http://www.boost.org/LICENSE_1_0.txt
5 // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
6 // File Version: 3.0.1 (2016/06/30)
7 
8 #pragma once
9 
10 #if defined(__gl_h_) || defined(__GL_H__)
11 #error gl.h included before OpenGL4.h
12 #endif
13 #if defined(__glext_h_) || defined(__GLEXT_H_)
14 #error glext.h included before OpenGL4.h
15 #endif
16 #define __gl_h_
17 #define __GL_H__
18 #define __glext_h_
19 #define __GLEXT_H_
20 
21 #if defined(WIN32) || defined(_WIN64)
22 #define __MSWINDOWS__
23 #if !defined(_MSC_VER)
24 #error Microsoft Visual Studio 2013 or later is required.
25 #endif
26 // MSVC 6 is version 12.0
27 // MSVC 7.0 is version 13.0 (MSVS 2002)
28 // MSVC 7.1 is version 13.1 (MSVS 2003)
29 // MSVC 8.0 is version 14.0 (MSVS 2005)
30 // MSVC 9.0 is version 15.0 (MSVS 2008)
31 // MSVC 10.0 is version 16.0 (MSVS 2010)
32 // MSVC 11.0 is version 17.0 (MSVS 2012)
33 // MSVC 12.0 is version 18.0 (MSVS 2013)
34 // MSVC 14.0 is version 19.0 (MSVS 2015)
35 // Currently, projects are provided only for MSVC 12.0 and 14.0.
36 #if _MSC_VER < 1800
37 #error Microsoft Visual Studio 2013 or later is required.
38 #endif
39 
40 // Define GLAPI for use by glcorearb.h.
41 #if defined(OPENGL4_EXPORT)
42 // For the dynamic library configurations.
43 #define GLAPI extern __declspec(dllexport)
44 #elif defined(OPENGL4_IMPORT)
45 // For a client of the dynamic library.
46 #define GLAPI extern __declspec(dllimport)
47 #else
48 // For the static library configurations.
49 #define GLAPI
50 #endif
51 
52 // Microsoft Windows supports OpenGL 1.1 types and functions. Prevent these
53 // from being defined in glcorearb.h.
54 #define GL_VERSION_1_0
55 #define GL_VERSION_1_1
56 extern "C"
57 {
58 // OpenGL 1.0
59 typedef void GLvoid;
60 typedef unsigned int GLenum;
61 typedef float GLfloat;
62 typedef int GLint;
63 typedef int GLsizei;
64 typedef unsigned int GLbitfield;
65 typedef double GLdouble;
66 typedef unsigned int GLuint;
67 typedef unsigned char GLboolean;
68 typedef unsigned char GLubyte;
69 __declspec(dllimport) void __stdcall glCullFace(GLenum mode);
70 __declspec(dllimport) void __stdcall glFrontFace(GLenum mode);
71 __declspec(dllimport) void __stdcall glHint(GLenum target, GLenum mode);
72 __declspec(dllimport) void __stdcall glLineWidth(GLfloat width);
73 __declspec(dllimport) void __stdcall glPointSize(GLfloat size);
74 __declspec(dllimport) void __stdcall glPolygonMode(GLenum face, GLenum mode);
75 __declspec(dllimport) void __stdcall glScissor(GLint x, GLint y, GLsizei width, GLsizei height);
76 __declspec(dllimport) void __stdcall glTexParameterf(GLenum target, GLenum pname, GLfloat param);
77 __declspec(dllimport) void __stdcall glTexParameterfv(GLenum target, GLenum pname, const GLfloat *params);
78 __declspec(dllimport) void __stdcall glTexParameteri(GLenum target, GLenum pname, GLint param);
79 __declspec(dllimport) void __stdcall glTexParameteriv(GLenum target, GLenum pname, const GLint *params);
80 __declspec(dllimport) void __stdcall glTexImage1D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels);
81 __declspec(dllimport) void __stdcall glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels);
82 __declspec(dllimport) void __stdcall glDrawBuffer(GLenum mode);
83 __declspec(dllimport) void __stdcall glClear(GLbitfield mask);
84 __declspec(dllimport) void __stdcall glClearColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
85 __declspec(dllimport) void __stdcall glClearStencil(GLint s);
86 __declspec(dllimport) void __stdcall glClearDepth(GLdouble depth);
87 __declspec(dllimport) void __stdcall glStencilMask(GLuint mask);
88 __declspec(dllimport) void __stdcall glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
89 __declspec(dllimport) void __stdcall glDepthMask(GLboolean flag);
90 __declspec(dllimport) void __stdcall glDisable(GLenum cap);
91 __declspec(dllimport) void __stdcall glEnable(GLenum cap);
92 __declspec(dllimport) void __stdcall glFinish(void);
93 __declspec(dllimport) void __stdcall glFlush(void);
94 __declspec(dllimport) void __stdcall glBlendFunc(GLenum sfactor, GLenum dfactor);
95 __declspec(dllimport) void __stdcall glLogicOp(GLenum opcode);
96 __declspec(dllimport) void __stdcall glStencilFunc(GLenum func, GLint ref, GLuint mask);
97 __declspec(dllimport) void __stdcall glStencilOp(GLenum fail, GLenum zfail, GLenum zpass);
98 __declspec(dllimport) void __stdcall glDepthFunc(GLenum func);
99 __declspec(dllimport) void __stdcall glPixelStoref(GLenum pname, GLfloat param);
100 __declspec(dllimport) void __stdcall glPixelStorei(GLenum pname, GLint param);
101 __declspec(dllimport) void __stdcall glReadBuffer(GLenum mode);
102 __declspec(dllimport) void __stdcall glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels);
103 __declspec(dllimport) void __stdcall glGetBooleanv(GLenum pname, GLboolean *data);
104 __declspec(dllimport) void __stdcall glGetDoublev(GLenum pname, GLdouble *data);
105 __declspec(dllimport) GLenum __stdcall glGetError(void);
106 __declspec(dllimport) void __stdcall glGetFloatv(GLenum pname, GLfloat *data);
107 __declspec(dllimport) void __stdcall glGetIntegerv(GLenum pname, GLint *data);
108 __declspec(dllimport) const GLubyte * __stdcall glGetString(GLenum name);
109 __declspec(dllimport) void __stdcall glGetTexImage(GLenum target, GLint level, GLenum format, GLenum type, void *pixels);
110 __declspec(dllimport) void __stdcall glGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params);
111 __declspec(dllimport) void __stdcall glGetTexParameteriv(GLenum target, GLenum pname, GLint *params);
112 __declspec(dllimport) void __stdcall glGetTexLevelParameterfv(GLenum target, GLint level, GLenum pname, GLfloat *params);
113 __declspec(dllimport) void __stdcall glGetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint *params);
114 __declspec(dllimport) GLboolean __stdcall glIsEnabled(GLenum cap);
115 __declspec(dllimport) void __stdcall glDepthRange(GLdouble near, GLdouble far);
116 __declspec(dllimport) void __stdcall glViewport(GLint x, GLint y, GLsizei width, GLsizei height);
117 
118 // OpenGL 1.1
119 typedef float GLclampf;
120 typedef double GLclampd;
121 #define GL_DEPTH_BUFFER_BIT 0x00000100
122 #define GL_STENCIL_BUFFER_BIT 0x00000400
123 #define GL_COLOR_BUFFER_BIT 0x00004000
124 #define GL_FALSE 0
125 #define GL_TRUE 1
126 #define GL_POINTS 0x0000
127 #define GL_LINES 0x0001
128 #define GL_LINE_LOOP 0x0002
129 #define GL_LINE_STRIP 0x0003
130 #define GL_TRIANGLES 0x0004
131 #define GL_TRIANGLE_STRIP 0x0005
132 #define GL_TRIANGLE_FAN 0x0006
133 #define GL_QUADS 0x0007
134 #define GL_NEVER 0x0200
135 #define GL_LESS 0x0201
136 #define GL_EQUAL 0x0202
137 #define GL_LEQUAL 0x0203
138 #define GL_GREATER 0x0204
139 #define GL_NOTEQUAL 0x0205
140 #define GL_GEQUAL 0x0206
141 #define GL_ALWAYS 0x0207
142 #define GL_ZERO 0
143 #define GL_ONE 1
144 #define GL_SRC_COLOR 0x0300
145 #define GL_ONE_MINUS_SRC_COLOR 0x0301
146 #define GL_SRC_ALPHA 0x0302
147 #define GL_ONE_MINUS_SRC_ALPHA 0x0303
148 #define GL_DST_ALPHA 0x0304
149 #define GL_ONE_MINUS_DST_ALPHA 0x0305
150 #define GL_DST_COLOR 0x0306
151 #define GL_ONE_MINUS_DST_COLOR 0x0307
152 #define GL_SRC_ALPHA_SATURATE 0x0308
153 #define GL_NONE 0
154 #define GL_FRONT_LEFT 0x0400
155 #define GL_FRONT_RIGHT 0x0401
156 #define GL_BACK_LEFT 0x0402
157 #define GL_BACK_RIGHT 0x0403
158 #define GL_FRONT 0x0404
159 #define GL_BACK 0x0405
160 #define GL_LEFT 0x0406
161 #define GL_RIGHT 0x0407
162 #define GL_FRONT_AND_BACK 0x0408
163 #define GL_NO_ERROR 0
164 #define GL_INVALID_ENUM 0x0500
165 #define GL_INVALID_VALUE 0x0501
166 #define GL_INVALID_OPERATION 0x0502
167 #define GL_OUT_OF_MEMORY 0x0505
168 #define GL_CW 0x0900
169 #define GL_CCW 0x0901
170 #define GL_POINT_SIZE 0x0B11
171 #define GL_POINT_SIZE_RANGE 0x0B12
172 #define GL_POINT_SIZE_GRANULARITY 0x0B13
173 #define GL_LINE_SMOOTH 0x0B20
174 #define GL_LINE_WIDTH 0x0B21
175 #define GL_LINE_WIDTH_RANGE 0x0B22
176 #define GL_LINE_WIDTH_GRANULARITY 0x0B23
177 #define GL_POLYGON_MODE 0x0B40
178 #define GL_POLYGON_SMOOTH 0x0B41
179 #define GL_CULL_FACE 0x0B44
180 #define GL_CULL_FACE_MODE 0x0B45
181 #define GL_FRONT_FACE 0x0B46
182 #define GL_DEPTH_RANGE 0x0B70
183 #define GL_DEPTH_TEST 0x0B71
184 #define GL_DEPTH_WRITEMASK 0x0B72
185 #define GL_DEPTH_CLEAR_VALUE 0x0B73
186 #define GL_DEPTH_FUNC 0x0B74
187 #define GL_STENCIL_TEST 0x0B90
188 #define GL_STENCIL_CLEAR_VALUE 0x0B91
189 #define GL_STENCIL_FUNC 0x0B92
190 #define GL_STENCIL_VALUE_MASK 0x0B93
191 #define GL_STENCIL_FAIL 0x0B94
192 #define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95
193 #define GL_STENCIL_PASS_DEPTH_PASS 0x0B96
194 #define GL_STENCIL_REF 0x0B97
195 #define GL_STENCIL_WRITEMASK 0x0B98
196 #define GL_VIEWPORT 0x0BA2
197 #define GL_DITHER 0x0BD0
198 #define GL_BLEND_DST 0x0BE0
199 #define GL_BLEND_SRC 0x0BE1
200 #define GL_BLEND 0x0BE2
201 #define GL_LOGIC_OP_MODE 0x0BF0
202 #define GL_COLOR_LOGIC_OP 0x0BF2
203 #define GL_DRAW_BUFFER 0x0C01
204 #define GL_READ_BUFFER 0x0C02
205 #define GL_SCISSOR_BOX 0x0C10
206 #define GL_SCISSOR_TEST 0x0C11
207 #define GL_COLOR_CLEAR_VALUE 0x0C22
208 #define GL_COLOR_WRITEMASK 0x0C23
209 #define GL_DOUBLEBUFFER 0x0C32
210 #define GL_STEREO 0x0C33
211 #define GL_LINE_SMOOTH_HINT 0x0C52
212 #define GL_POLYGON_SMOOTH_HINT 0x0C53
213 #define GL_UNPACK_SWAP_BYTES 0x0CF0
214 #define GL_UNPACK_LSB_FIRST 0x0CF1
215 #define GL_UNPACK_ROW_LENGTH 0x0CF2
216 #define GL_UNPACK_SKIP_ROWS 0x0CF3
217 #define GL_UNPACK_SKIP_PIXELS 0x0CF4
218 #define GL_UNPACK_ALIGNMENT 0x0CF5
219 #define GL_PACK_SWAP_BYTES 0x0D00
220 #define GL_PACK_LSB_FIRST 0x0D01
221 #define GL_PACK_ROW_LENGTH 0x0D02
222 #define GL_PACK_SKIP_ROWS 0x0D03
223 #define GL_PACK_SKIP_PIXELS 0x0D04
224 #define GL_PACK_ALIGNMENT 0x0D05
225 #define GL_MAX_TEXTURE_SIZE 0x0D33
226 #define GL_MAX_VIEWPORT_DIMS 0x0D3A
227 #define GL_SUBPIXEL_BITS 0x0D50
228 #define GL_TEXTURE_1D 0x0DE0
229 #define GL_TEXTURE_2D 0x0DE1
230 #define GL_POLYGON_OFFSET_UNITS 0x2A00
231 #define GL_POLYGON_OFFSET_POINT 0x2A01
232 #define GL_POLYGON_OFFSET_LINE 0x2A02
233 #define GL_POLYGON_OFFSET_FILL 0x8037
234 #define GL_POLYGON_OFFSET_FACTOR 0x8038
235 #define GL_TEXTURE_BINDING_1D 0x8068
236 #define GL_TEXTURE_BINDING_2D 0x8069
237 #define GL_TEXTURE_WIDTH 0x1000
238 #define GL_TEXTURE_HEIGHT 0x1001
239 #define GL_TEXTURE_INTERNAL_FORMAT 0x1003
240 #define GL_TEXTURE_BORDER_COLOR 0x1004
241 #define GL_TEXTURE_RED_SIZE 0x805C
242 #define GL_TEXTURE_GREEN_SIZE 0x805D
243 #define GL_TEXTURE_BLUE_SIZE 0x805E
244 #define GL_TEXTURE_ALPHA_SIZE 0x805F
245 #define GL_DONT_CARE 0x1100
246 #define GL_FASTEST 0x1101
247 #define GL_NICEST 0x1102
248 #define GL_BYTE 0x1400
249 #define GL_UNSIGNED_BYTE 0x1401
250 #define GL_SHORT 0x1402
251 #define GL_UNSIGNED_SHORT 0x1403
252 #define GL_INT 0x1404
253 #define GL_UNSIGNED_INT 0x1405
254 #define GL_FLOAT 0x1406
255 #define GL_DOUBLE 0x140A
256 #define GL_STACK_OVERFLOW 0x0503
257 #define GL_STACK_UNDERFLOW 0x0504
258 #define GL_CLEAR 0x1500
259 #define GL_AND 0x1501
260 #define GL_AND_REVERSE 0x1502
261 #define GL_COPY 0x1503
262 #define GL_AND_INVERTED 0x1504
263 #define GL_NOOP 0x1505
264 #define GL_XOR 0x1506
265 #define GL_OR 0x1507
266 #define GL_NOR 0x1508
267 #define GL_EQUIV 0x1509
268 #define GL_INVERT 0x150A
269 #define GL_OR_REVERSE 0x150B
270 #define GL_COPY_INVERTED 0x150C
271 #define GL_OR_INVERTED 0x150D
272 #define GL_NAND 0x150E
273 #define GL_SET 0x150F
274 #define GL_TEXTURE 0x1702
275 #define GL_COLOR 0x1800
276 #define GL_DEPTH 0x1801
277 #define GL_STENCIL 0x1802
278 #define GL_STENCIL_INDEX 0x1901
279 #define GL_DEPTH_COMPONENT 0x1902
280 #define GL_RED 0x1903
281 #define GL_GREEN 0x1904
282 #define GL_BLUE 0x1905
283 #define GL_ALPHA 0x1906
284 #define GL_RGB 0x1907
285 #define GL_RGBA 0x1908
286 #define GL_POINT 0x1B00
287 #define GL_LINE 0x1B01
288 #define GL_FILL 0x1B02
289 #define GL_KEEP 0x1E00
290 #define GL_REPLACE 0x1E01
291 #define GL_INCR 0x1E02
292 #define GL_DECR 0x1E03
293 #define GL_VENDOR 0x1F00
294 #define GL_RENDERER 0x1F01
295 #define GL_VERSION 0x1F02
296 #define GL_EXTENSIONS 0x1F03
297 #define GL_NEAREST 0x2600
298 #define GL_LINEAR 0x2601
299 #define GL_NEAREST_MIPMAP_NEAREST 0x2700
300 #define GL_LINEAR_MIPMAP_NEAREST 0x2701
301 #define GL_NEAREST_MIPMAP_LINEAR 0x2702
302 #define GL_LINEAR_MIPMAP_LINEAR 0x2703
303 #define GL_TEXTURE_MAG_FILTER 0x2800
304 #define GL_TEXTURE_MIN_FILTER 0x2801
305 #define GL_TEXTURE_WRAP_S 0x2802
306 #define GL_TEXTURE_WRAP_T 0x2803
307 #define GL_PROXY_TEXTURE_1D 0x8063
308 #define GL_PROXY_TEXTURE_2D 0x8064
309 #define GL_REPEAT 0x2901
310 #define GL_R3_G3_B2 0x2A10
311 #define GL_RGB4 0x804F
312 #define GL_RGB5 0x8050
313 #define GL_RGB8 0x8051
314 #define GL_RGB10 0x8052
315 #define GL_RGB12 0x8053
316 #define GL_RGB16 0x8054
317 #define GL_RGBA2 0x8055
318 #define GL_RGBA4 0x8056
319 #define GL_RGB5_A1 0x8057
320 #define GL_RGBA8 0x8058
321 #define GL_RGB10_A2 0x8059
322 #define GL_RGBA12 0x805A
323 #define GL_RGBA16 0x805B
324 #define GL_VERTEX_ARRAY 0x8074
325 __declspec(dllimport) void __stdcall glDrawArrays(GLenum mode, GLint first, GLsizei count);
326 __declspec(dllimport) void __stdcall glDrawElements(GLenum mode, GLsizei count, GLenum type, const void *indices);
327 __declspec(dllimport) void __stdcall glGetPointerv(GLenum pname, void **params);
328 __declspec(dllimport) void __stdcall glPolygonOffset(GLfloat factor, GLfloat units);
329 __declspec(dllimport) void __stdcall glCopyTexImage1D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
330 __declspec(dllimport) void __stdcall glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
331 __declspec(dllimport) void __stdcall glCopyTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
332 __declspec(dllimport) void __stdcall glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
333 __declspec(dllimport) void __stdcall glTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels);
334 __declspec(dllimport) void __stdcall glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
335 __declspec(dllimport) void __stdcall glBindTexture(GLenum target, GLuint texture);
336 __declspec(dllimport) void __stdcall glDeleteTextures(GLsizei n, const GLuint *textures);
337 __declspec(dllimport) void __stdcall glGenTextures(GLsizei n, GLuint *textures);
338 __declspec(dllimport) GLboolean __stdcall glIsTexture(GLuint texture);
339 }
340 
341 // Microsoft Windows OpenGL extensions (WGL).
342 extern "C"
343 {
344 extern int __stdcall wglSwapIntervalEXT(int interval);
345 extern int __stdcall wglGetSwapIntervalEXT(void);
346 }
347 extern void InitializeWGL();
348 #endif
349 
350 // Use the prototypes provided by glcorearb.h.
351 #define GL_GLEXT_PROTOTYPES
352 #if defined(__MSWINDOWS__)
353 // Disable the Windows.h min and max macros.
354 #define NOMINMAX
355 #endif
357 
358 // Call this function before using OpenGL in your code. To see what your
359 // driver supports, pass in a file name to which the information will be
360 // stored. For no information, pass in nullptr.
361 extern void InitializeOpenGL(int& major, int& minor, char const* infofile);
GLfloat green
Definition: glcorearb.h:107
void APIENTRY glGetTexImage(GLenum target, GLint level, GLenum format, GLenum type, void *pixels)
Definition: GteOpenGL.cpp:661
GLdouble n
Definition: glcorearb.h:2003
void APIENTRY glCopyTexImage1D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border)
Definition: GteOpenGL.cpp:889
void APIENTRY glBlendFunc(GLenum sfactor, GLenum dfactor)
Definition: GteOpenGL.cpp:461
GLfloat GLfloat GLfloat alpha
Definition: glcorearb.h:107
float GLfloat
Definition: glcorearb.h:84
GLint GLint GLint yoffset
Definition: glcorearb.h:407
GLenum GLfloat param
Definition: glcorearb.h:99
GLint GLint GLsizei GLint border
Definition: glcorearb.h:103
int GLint
Definition: glcorearb.h:85
void APIENTRY glTexParameteri(GLenum target, GLenum pname, GLint param)
Definition: GteOpenGL.cpp:253
unsigned int GLuint
Definition: glcorearb.h:89
void APIENTRY glDrawArrays(GLenum mode, GLint first, GLsizei count)
Definition: GteOpenGL.cpp:837
void APIENTRY glGetFloatv(GLenum pname, GLfloat *data)
Definition: GteOpenGL.cpp:619
void APIENTRY glViewport(GLint x, GLint y, GLsizei width, GLsizei height)
Definition: GteOpenGL.cpp:755
void APIENTRY glGetPointerv(GLenum pname, void **params)
Definition: GteOpenGL.cpp:863
void APIENTRY glDepthMask(GLboolean flag)
Definition: GteOpenGL.cpp:396
GLint GLsizei width
Definition: glcorearb.h:98
void APIENTRY glDepthRange(GLdouble near, GLdouble far)
Definition: GteOpenGL.cpp:742
GLboolean APIENTRY glIsTexture(GLuint texture)
Definition: GteOpenGL.cpp:1006
void APIENTRY glTexParameterf(GLenum target, GLenum pname, GLfloat param)
Definition: GteOpenGL.cpp:227
void APIENTRY glCopyTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width)
Definition: GteOpenGL.cpp:915
void APIENTRY glLineWidth(GLfloat width)
Definition: GteOpenGL.cpp:175
void APIENTRY glStencilMask(GLuint mask)
Definition: GteOpenGL.cpp:370
GLint level
Definition: glcorearb.h:103
unsigned char GLboolean
Definition: glcorearb.h:90
unsigned char GLubyte
Definition: glcorearb.h:91
void APIENTRY glStencilOp(GLenum fail, GLenum zfail, GLenum zpass)
Definition: GteOpenGL.cpp:500
const GLuint * textures
Definition: glcorearb.h:411
GLdouble far
Definition: glcorearb.h:138
void APIENTRY glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels)
Definition: GteOpenGL.cpp:565
void APIENTRY glDeleteTextures(GLsizei n, const GLuint *textures)
Definition: GteOpenGL.cpp:980
GLuint const GLchar * name
Definition: glcorearb.h:781
void APIENTRY glGetTexParameteriv(GLenum target, GLenum pname, GLint *params)
Definition: GteOpenGL.cpp:687
float GLclampf
Definition: glcorearb.h:194
void APIENTRY glTexParameterfv(GLenum target, GLenum pname, const GLfloat *params)
Definition: GteOpenGL.cpp:240
void APIENTRY glTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels)
Definition: GteOpenGL.cpp:941
GLenum target
Definition: glcorearb.h:1662
GLint GLenum GLint x
Definition: glcorearb.h:404
GLint GLuint mask
Definition: glcorearb.h:119
GLenum cap
Definition: glext.h:8371
void APIENTRY glPixelStorei(GLenum pname, GLint param)
Definition: GteOpenGL.cpp:539
GLsizeiptr size
Definition: glcorearb.h:659
void APIENTRY glLogicOp(GLenum opcode)
Definition: GteOpenGL.cpp:474
GLint GLint GLsizei GLsizei GLsizei depth
Definition: glcorearb.h:471
void GLvoid
Definition: glcorearb.h:82
void APIENTRY glBindTexture(GLenum target, GLuint texture)
Definition: GteOpenGL.cpp:967
GLenum APIENTRY glGetError()
Definition: GteOpenGL.cpp:604
int GLsizei
Definition: glcorearb.h:86
double GLclampd
Definition: glcorearb.h:195
void APIENTRY glReadBuffer(GLenum src)
Definition: GteOpenGL.cpp:552
void APIENTRY glFinish()
Definition: GteOpenGL.cpp:435
void APIENTRY glGetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint *params)
Definition: GteOpenGL.cpp:713
GLenum dfactor
Definition: glcorearb.h:117
unsigned int GLenum
Definition: glcorearb.h:83
GLfloat GLfloat blue
Definition: glcorearb.h:107
GLint ref
Definition: glcorearb.h:119
GLsizei GLenum const void * indices
Definition: glcorearb.h:401
GLint GLint internalformat
Definition: glcorearb.h:103
void APIENTRY glDrawBuffer(GLenum buf)
Definition: GteOpenGL.cpp:305
int __stdcall wglGetSwapIntervalEXT(void)
void APIENTRY glTexParameteriv(GLenum target, GLenum pname, const GLint *params)
Definition: GteOpenGL.cpp:266
GLboolean * data
Definition: glcorearb.h:126
GLint first
Definition: glcorearb.h:400
const GLubyte *APIENTRY glGetString(GLenum name)
Definition: GteOpenGL.cpp:645
GLuint texture
Definition: glcorearb.h:410
int __stdcall wglSwapIntervalEXT(int interval)
void APIENTRY glGenTextures(GLsizei n, GLuint *textures)
Definition: GteOpenGL.cpp:993
GLint GLsizei count
Definition: glcorearb.h:400
GLint GLint xoffset
Definition: glcorearb.h:406
void APIENTRY glDrawElements(GLenum mode, GLsizei count, GLenum type, const void *indices)
Definition: GteOpenGL.cpp:850
void APIENTRY glStencilFunc(GLenum func, GLint ref, GLuint mask)
Definition: GteOpenGL.cpp:487
void InitializeOpenGL(int &major, int &minor, char const *infofile)
void APIENTRY glScissor(GLint x, GLint y, GLsizei width, GLsizei height)
Definition: GteOpenGL.cpp:214
void APIENTRY glHint(GLenum target, GLenum mode)
Definition: GteOpenGL.cpp:162
void APIENTRY glCullFace(GLenum mode)
Definition: GteOpenGL.cpp:136
void APIENTRY glFlush()
Definition: GteOpenGL.cpp:448
GLenum pname
Definition: glcorearb.h:99
GLenum zfail
Definition: glcorearb.h:120
GLint GLint GLsizei GLint GLenum format
Definition: glcorearb.h:103
GLint GLsizei GLsizei height
Definition: glcorearb.h:98
void APIENTRY glGetTexLevelParameterfv(GLenum target, GLint level, GLenum pname, GLfloat *params)
Definition: GteOpenGL.cpp:700
GLenum mode
Definition: glcorearb.h:94
GLfloat units
Definition: glcorearb.h:403
void APIENTRY glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels)
Definition: GteOpenGL.cpp:292
GLenum GLenum zpass
Definition: glcorearb.h:120
GLint GLint GLsizei GLint GLenum GLenum const void * pixels
Definition: glcorearb.h:103
GLenum func
Definition: glcorearb.h:778
void APIENTRY glClearDepth(GLdouble depth)
Definition: GteOpenGL.cpp:357
void APIENTRY glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
Definition: GteOpenGL.cpp:383
double GLdouble
Definition: glcorearb.h:88
void APIENTRY glGetBooleanv(GLenum pname, GLboolean *data)
Definition: GteOpenGL.cpp:578
GLdouble s
Definition: glext.h:231
void APIENTRY glGetIntegerv(GLenum pname, GLint *data)
Definition: GteOpenGL.cpp:632
void InitializeWGL()
void APIENTRY glTexImage1D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels)
Definition: GteOpenGL.cpp:279
void APIENTRY glPolygonOffset(GLfloat factor, GLfloat units)
Definition: GteOpenGL.cpp:876
void APIENTRY glClear(GLbitfield mask)
Definition: GteOpenGL.cpp:318
GLenum const GLfloat * params
Definition: glcorearb.h:100
void APIENTRY glGetDoublev(GLenum pname, GLdouble *data)
Definition: GteOpenGL.cpp:591
void APIENTRY glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
Definition: GteOpenGL.cpp:902
void APIENTRY glClearColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
Definition: GteOpenGL.cpp:331
void APIENTRY glDisable(GLenum cap)
Definition: GteOpenGL.cpp:409
void APIENTRY glPointSize(GLfloat size)
Definition: GteOpenGL.cpp:188
void APIENTRY glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels)
Definition: GteOpenGL.cpp:954
unsigned int GLbitfield
Definition: glcorearb.h:87
void APIENTRY glFrontFace(GLenum mode)
Definition: GteOpenGL.cpp:149
void APIENTRY glClearStencil(GLint s)
Definition: GteOpenGL.cpp:344
void APIENTRY glDepthFunc(GLenum func)
Definition: GteOpenGL.cpp:513
void APIENTRY glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
Definition: GteOpenGL.cpp:928
GLint y
Definition: glcorearb.h:98
void APIENTRY glPixelStoref(GLenum pname, GLfloat param)
Definition: GteOpenGL.cpp:526
void APIENTRY glPolygonMode(GLenum face, GLenum mode)
Definition: GteOpenGL.cpp:201
void APIENTRY glGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params)
Definition: GteOpenGL.cpp:674
GLenum GLuint GLint GLenum face
Definition: glext.h:3311
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:103
GLboolean APIENTRY glIsEnabled(GLenum cap)
Definition: GteOpenGL.cpp:726
void APIENTRY glEnable(GLenum cap)
Definition: GteOpenGL.cpp:422


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:01