ManaPlus
mgltypes.h
Go to the documentation of this file.
1 /*
2  * The ManaPlus Client
3  * Copyright (C) 2012-2019 The ManaPlus Developers
4  * Copyright (C) 2019-2021 Andrei Karas
5  *
6  * This file is part of The ManaPlus Client.
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  */
21 
22 #ifndef RENDER_OPENGL_MGLTYPES_H
23 #define RENDER_OPENGL_MGLTYPES_H
24 
25 #ifdef USE_OPENGL
26 
27 #ifdef ANDROID
28 #include <GLES/gl.h>
29 #include <GLES/glext.h>
30 #define APIENTRY GL_APIENTRY
31 #else // ANDROID
32 #include "localconsts.h"
33 #ifndef USE_SDL2
34 #define GL_GLEXT_PROTOTYPES 1
35 #endif // USE_SDL2
36 #ifdef HAVE_GLEXT
37 #define NO_SDL_GLEXT
38 #endif // HAVE_GLEXT
39 PRAGMA48(GCC diagnostic push)
40 PRAGMA48(GCC diagnostic ignored "-Wshadow")
41 // ignore -Wredundant-decls for SDL 1.2
42 PRAGMA45(GCC diagnostic push)
43 PRAGMA45(GCC diagnostic ignored "-Wredundant-decls")
44 #include <SDL_opengl.h>
45 PRAGMA45(GCC diagnostic pop)
46 PRAGMA48(GCC diagnostic pop)
47 #ifdef HAVE_GLEXT
48 PRAGMA45(GCC diagnostic push)
49 PRAGMA45(GCC diagnostic ignored "-Wredundant-decls")
50 #include <GL/glext.h>
51 PRAGMA45(GCC diagnostic pop)
52 #endif // HAVE_GLEXT
53 #ifdef __native_client__
54 #include <GL/Regal.h>
55 #else // __native_client__
56 #if defined(__APPLE__)
57 #include <OpenGL/glext.h>
58 #else // defined(__APPLE__)
59 #ifndef __glext_h_
60 // probably this include need for some os / libs
61 PRAGMA45(GCC diagnostic push)
62 PRAGMA45(GCC diagnostic ignored "-Wredundant-decls")
63 #include <GL/glext.h>
64 PRAGMA45(GCC diagnostic pop)
65 // #error missing include <GL/glext.h>
66 #endif // __glext_h_
67 #endif // defined(__APPLE__)
68 #endif // __native_client__
69 #endif // ANDROID
70 
72 RENDER_OPENGL_MGLDEFINES_H
73 
74 #ifndef USE_SDL2
75 #if defined(__GXX_EXPERIMENTAL_CXX0X__)
76 #include <cstdint>
77 #endif // defined(__GXX_EXPERIMENTAL_CXX0X__)
78 #endif // USE_SDL2
79 
80 typedef void (APIENTRY *glGenRenderbuffers_t)(GLsizei, GLuint *);
81 typedef void (APIENTRY *glBindRenderbuffer_t)(GLenum target,
82  GLuint renderbuffer);
83 typedef void (APIENTRY *glRenderbufferStorage_t)(GLenum target,
84  GLenum internalformat, GLsizei width, GLsizei height);
85 typedef void (APIENTRY *glGenFramebuffers_t)(GLsizei n, GLuint *framebuffers);
86 typedef void (APIENTRY *glBindFramebuffer_t)(GLenum target,
87  GLuint framebuffer);
88 typedef void (APIENTRY *glFramebufferTexture2D_t)(GLenum target,
89  GLenum attachment, GLenum textarget, GLuint texture, GLint level);
90 typedef void (APIENTRY *glFramebufferRenderbuffer_t)(GLenum target,
91  GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
92 typedef void (APIENTRY *glDeleteFramebuffers_t) (GLsizei, const GLuint *);
93 typedef void (APIENTRY *glDeleteRenderbuffers_t) (GLsizei, const GLuint *);
94 typedef const GLubyte *(APIENTRY *glGetStringi_t) (GLenum, GLuint);
95 typedef void (APIENTRY *glGenSamplers_t) (GLsizei count, GLuint *samplers);
96 typedef void (APIENTRY *glDeleteSamplers_t)
97  (GLsizei count, const GLuint * samplers);
98 typedef void (APIENTRY *glBindSampler_t) (GLuint unit, GLuint sampler);
99 typedef void (APIENTRY *glSamplerParameteri_t)
100  (GLuint sampler, GLenum pname, GLint param);
101 typedef void (APIENTRY *glDebugMessageControl_t) (GLenum source, GLenum type,
102  GLenum severity, GLsizei count, const GLuint* ids, GLboolean enabled);
103 typedef void (APIENTRY *glFrameTerminator_t) (void);
104 typedef void (APIENTRY *glLabelObject_t) (GLenum type, GLuint object,
105  GLsizei length, const GLchar *label);
106 typedef void (APIENTRY *glGetObjectLabel_t) (GLenum type, GLuint object,
107  GLsizei bufSize, GLsizei *length, GLchar *label);
108 typedef void (APIENTRY *glInsertEventMarker_t)
109  (GLsizei length, const char *marker);
110 typedef void (APIENTRY *glPushGroupMarker_t)
111  (GLsizei length, const char *marker);
112 typedef void (APIENTRY *glPopGroupMarker_t) (void);
113 typedef void (APIENTRY *glGenVertexArrays_t) (GLsizei n, GLuint *arrays);
114 typedef void (APIENTRY *glBindVertexArray_t) (GLuint array);
115 typedef void (APIENTRY *glDeleteVertexArrays_t) (GLsizei n, GLuint *arrays);
116 typedef void (APIENTRY *glDisableVertexAttribArray_t) (GLuint index);
117 typedef void (APIENTRY *glDeleteShader_t) (GLenum shader);
118 typedef void (APIENTRY *glGetShaderInfoLog_t) (GLuint shader,
119  GLsizei maxLength, GLsizei *length, GLchar *infoLog);
120 typedef void (APIENTRY *glGetShaderSource_t) (GLuint shader,
121  GLsizei bufSize, GLsizei *length, GLchar *source);
122 typedef void (APIENTRY *glDetachShader_t) (GLuint program, GLuint shader);
123 typedef void (APIENTRY *glGetAttachedShaders_t) (GLuint program,
124  GLsizei maxCount, GLsizei *count, GLuint *shaders);
125 typedef void (APIENTRY *glGetActiveUniform_t) (GLuint program, GLuint index,
126  GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
127 typedef GLint (APIENTRY *glBindFragDataLocation_t) (GLuint program,
128  GLuint colorNumber, const char *name);
129 #ifndef __native_client__
130 typedef void (APIENTRY *glDeleteProgram_t) (GLuint program);
131 typedef GLuint (APIENTRY *glCreateProgram_t) (void);
132 typedef void (APIENTRY *glGetProgramiv_t) (GLuint program,
133  GLenum pname, GLint *params);
134 typedef void (APIENTRY *glLinkProgram_t) (GLuint program);
135 typedef void (APIENTRY *glAttachShader_t) (GLuint program, GLuint shader);
136 typedef void (APIENTRY *glGetShaderiv_t) (GLuint shader,
137  GLenum pname, GLint *params);
138 typedef void (APIENTRY *glCompileShader_t) (GLuint shader);
139 typedef void (APIENTRY *glShaderSource_t) (GLuint shader,
140  GLsizei count, const GLchar **string, const GLint *length);
141 typedef GLuint (APIENTRY *glCreateShader_t) (GLenum shaderType);
142 typedef GLint (APIENTRY *glGetUniformLocation_t) (GLuint program,
143  const GLchar *name);
144 typedef void (APIENTRY *glGenBuffers_t) (GLsizei n, GLuint *buffers);
145 typedef void (APIENTRY *glDeleteBuffers_t) (GLsizei n, GLuint *buffers);
146 typedef void (APIENTRY *glBindBuffer_t) (GLenum target, GLuint buffer);
147 typedef void (APIENTRY *glBufferData_t) (GLenum target, GLsizeiptr size,
148  const GLvoid *data, GLenum usage);
149 typedef void (APIENTRY *glEnableVertexAttribArray_t) (GLuint index);
150 typedef void (APIENTRY *glVertexAttribPointer_t) (GLuint index, GLint size,
151  GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer);
152 typedef void (APIENTRY *glUseProgram_t) (GLuint program);
153 typedef void (APIENTRY *glUniform1f_t) (GLint location, GLfloat v0);
154 typedef void (APIENTRY *glUniform2f_t) (GLint location,
155  GLfloat v0, GLfloat v1);
156 typedef void (APIENTRY *glUniform4f_t) (GLint location,
157  GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
158 typedef void (APIENTRY *glValidateProgram_t) (GLuint program);
159 typedef void (APIENTRY *glGetProgramInfoLog_t) (GLuint program,
160  GLsizei maxLength, GLsizei *length, GLchar *infoLog);
161 typedef void (APIENTRY *glBindAttribLocation_t) (GLuint program,
162  GLuint index, const GLchar *name);
163 typedef void (APIENTRY *glActiveTexture_t) (GLenum texture);
164 #endif // __native_client__
165 
166 typedef GLint (APIENTRY *glGetAttribLocation_t) (GLuint program,
167  const GLchar *name);
168 typedef void (APIENTRY *glUniform3f_t) (GLint location,
169  GLfloat v0, GLfloat v1, GLfloat v2);
170 typedef GLenum (APIENTRY *glCheckFramebufferStatus_t) (GLenum target);
171 typedef void (APIENTRY *glProgramUniform1f_t) (GLuint program,
172  GLint location, GLfloat v0);
173 typedef void (APIENTRY *glProgramUniform2f_t) (GLuint program,
174  GLint location, GLfloat v0, GLfloat v1);
175 typedef void (APIENTRY *glProgramUniform3f_t) (GLuint program,
176  GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
177 typedef void (APIENTRY *glProgramUniform4f_t) (GLuint program,
178  GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
179 typedef void (APIENTRY *glBindVertexBuffer_t) (GLuint bindingindex,
180  GLuint buffer, GLintptr offset, GLintptr stride);
181 typedef void (APIENTRY *glVertexAttribBinding_t) (GLuint attribindex,
182  GLuint bindingindex);
183 typedef void (APIENTRY *glVertexAttribFormat_t) (GLuint attribindex,
184  GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
185 typedef void (APIENTRY *glBindVertexBuffers_t) (GLuint first, GLsizei count,
186  const GLuint *buffers, const GLuint *offsets, const GLsizei *strides);
187 typedef GLboolean (APIENTRY *glIsBuffer_t) (GLuint buffer);
188 typedef void (APIENTRY *glVertexAttribIFormat_t) (GLuint attribindex,
189  GLint size, GLenum type, GLuint relativeoffset);
190 typedef void (APIENTRY *glVertexAttribIPointer_t) (GLuint index, GLint size,
191  GLenum type, GLsizei stride, const GLvoid * pointer);
192 typedef void (APIENTRY *glInvalidateTexImage_t) (GLuint texture, GLint level);
193 typedef void (APIENTRY *glCopyImageSubData_t) (GLuint srcName,
194  GLenum srcTarget, GLint srcLevel,
195  GLint srcX, GLint srcY, GLint srcZ,
196  GLuint dstName, GLenum dstTarget, GLint dstLevel,
197  GLint dstX, GLint dstY, GLint dstZ,
198  GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
199 typedef void (APIENTRY *glPushDebugGroup_t) (GLenum source, GLuint id,
200  GLsizei length, const GLchar * message);
201 typedef void (APIENTRY *glPopDebugGroup_t) (void);
202 typedef void (APIENTRY *glObjectLabel_t) (GLenum identifier, GLuint name,
203  GLsizei length, const GLchar *label);
204 typedef void (APIENTRY *glTexStorage2D_t) (GLenum target, GLsizei levels,
205  GLenum internalformat, GLsizei width, GLsizei height);
206 typedef void (APIENTRY *glGenQueries_t) (GLsizei n, GLuint *ids);
207 typedef void (APIENTRY *glBeginQuery_t) (GLenum target, GLuint id);
208 typedef void (APIENTRY *glEndQuery_t) (GLenum target);
209 typedef void (APIENTRY *glDeleteQueries_t) (GLsizei n, const GLuint *ids);
210 typedef void (APIENTRY *glGetQueryObjectiv_t) (GLuint id,
211  GLenum pname, GLint *params);
212 typedef void (APIENTRY *glGetQueryObjectui64v_t) (GLuint id,
213  GLenum pname, uint64_t *params);
214 typedef void (APIENTRY *glTextureSubImage2DEXT_t) (GLuint texture,
215  GLenum target, GLint level, GLint xoffset, GLint yoffset,
216  GLsizei width, GLsizei height, GLenum format, GLenum type,
217  const void *pixels);
218 typedef void (APIENTRY *glTextureSubImage2D_t) (GLuint texture,
219  GLint level, GLint xoffset, GLint yoffset,
220  GLsizei width, GLsizei height, GLenum format, GLenum type,
221  const void *pixels);
222 typedef void (APIENTRY *glClearTexImage_t) (GLuint texture, GLint level,
223  GLenum format, GLenum type, const void * data);
224 typedef void (APIENTRY *glClearTexSubImage_t) (GLuint texture, GLint level,
225  GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height,
226  GLsizei depth, GLenum format, GLenum type, const void * data);
227 
228 // callback
229 typedef void (APIENTRY *GLDEBUGPROC_t) (GLenum source, GLenum type, GLuint id,
230  GLenum severity, GLsizei length, const GLchar *message, GLvoid *userParam);
231 
232 typedef void (APIENTRY *glDebugMessageCallback_t) (GLDEBUGPROC_t callback,
233  const void *userParam);
234 
235 
236 #ifdef WIN32
237 typedef const char* (APIENTRY * wglGetExtensionsString_t) (HDC hdc);
238 #else // WIN32
239 #define CALLBACK
240 #endif // WIN32
241 
242 #endif // USE_OPENGL
243 #endif // RENDER_OPENGL_MGLTYPES_H
#define PRAGMA48(str)
Definition: localconsts.h:199
uint32_t data
void(* glUseProgram_t)(GLuint program)
Definition: mgltypes.h:152
void(* glObjectLabel_t)(GLenum identifier, GLuint name, GLsizei length, const GLchar *label)
Definition: mgltypes.h:202
void(* glDebugMessageCallback_t)(GLDEBUGPROC_t callback, const void *userParam)
Definition: mgltypes.h:232
void(* glGetObjectLabel_t)(GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label)
Definition: mgltypes.h:106
void(* glSamplerParameteri_t)(GLuint sampler, GLenum pname, GLint param)
Definition: mgltypes.h:100
void(* glProgramUniform4f_t)(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3)
Definition: mgltypes.h:177
GLboolean(* glIsBuffer_t)(GLuint buffer)
Definition: mgltypes.h:187
void(* glVertexAttribIFormat_t)(GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset)
Definition: mgltypes.h:188
void(* glInsertEventMarker_t)(GLsizei length, const char *marker)
Definition: mgltypes.h:109
void(* glGetShaderSource_t)(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source)
Definition: mgltypes.h:120
void(* glClearTexSubImage_t)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *data)
Definition: mgltypes.h:224
void(* glDeleteShader_t)(GLenum shader)
Definition: mgltypes.h:117
GLuint *typedef void(* glBindRenderbuffer_t)(GLenum target, GLuint renderbuffer)
Definition: mgltypes.h:81
void(* glDeleteVertexArrays_t)(GLsizei n, GLuint *arrays)
Definition: mgltypes.h:115
void(* glCopyImageSubData_t)(GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth)
Definition: mgltypes.h:193
void(* glDetachShader_t)(GLuint program, GLuint shader)
Definition: mgltypes.h:122
GLuint(* glCreateProgram_t)(void)
Definition: mgltypes.h:131
void(* glProgramUniform3f_t)(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2)
Definition: mgltypes.h:175
void(* glProgramUniform1f_t)(GLuint program, GLint location, GLfloat v0)
Definition: mgltypes.h:171
void(* glClearTexImage_t)(GLuint texture, GLint level, GLenum format, GLenum type, const void *data)
Definition: mgltypes.h:222
void(* glUniform2f_t)(GLint location, GLfloat v0, GLfloat v1)
Definition: mgltypes.h:154
void(* glUniform3f_t)(GLint location, GLfloat v0, GLfloat v1, GLfloat v2)
Definition: mgltypes.h:168
void(* glPopDebugGroup_t)(void)
Definition: mgltypes.h:201
void(* glDeleteSamplers_t)(GLsizei count, const GLuint *samplers)
Definition: mgltypes.h:97
void(* glBufferData_t)(GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage)
Definition: mgltypes.h:147
void(* glGenVertexArrays_t)(GLsizei n, GLuint *arrays)
Definition: mgltypes.h:113
void(* glDebugMessageControl_t)(GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled)
Definition: mgltypes.h:101
void(* glVertexAttribIPointer_t)(GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
Definition: mgltypes.h:190
void(* glBindVertexBuffers_t)(GLuint first, GLsizei count, const GLuint *buffers, const GLuint *offsets, const GLsizei *strides)
Definition: mgltypes.h:185
const GLubyte *(* glGetStringi_t)(GLenum, GLuint)
Definition: mgltypes.h:94
void(* glVertexAttribFormat_t)(GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset)
Definition: mgltypes.h:183
void(* glGenFramebuffers_t)(GLsizei n, GLuint *framebuffers)
Definition: mgltypes.h:85
void(* glGetQueryObjectiv_t)(GLuint id, GLenum pname, GLint *params)
Definition: mgltypes.h:210
void(* glTextureSubImage2D_t)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels)
Definition: mgltypes.h:218
void(* glGetActiveUniform_t)(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name)
Definition: mgltypes.h:125
void(* glBindVertexBuffer_t)(GLuint bindingindex, GLuint buffer, GLintptr offset, GLintptr stride)
Definition: mgltypes.h:179
void(* GLDEBUGPROC_t)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *message, GLvoid *userParam)
Definition: mgltypes.h:229
GLint(* glGetAttribLocation_t)(GLuint program, const GLchar *name)
Definition: mgltypes.h:166
void(* glBeginQuery_t)(GLenum target, GLuint id)
Definition: mgltypes.h:207
void(* glPushGroupMarker_t)(GLsizei length, const char *marker)
Definition: mgltypes.h:111
void(* glLinkProgram_t)(GLuint program)
Definition: mgltypes.h:134
void(* glBindFramebuffer_t)(GLenum target, GLuint framebuffer)
Definition: mgltypes.h:86
GLuint(* glCreateShader_t)(GLenum shaderType)
Definition: mgltypes.h:141
void(* glTexStorage2D_t)(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height)
Definition: mgltypes.h:204
void(* glPopGroupMarker_t)(void)
Definition: mgltypes.h:112
void(* glAttachShader_t)(GLuint program, GLuint shader)
Definition: mgltypes.h:135
void(* glTextureSubImage2DEXT_t)(GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels)
Definition: mgltypes.h:214
void(* glActiveTexture_t)(GLenum texture)
Definition: mgltypes.h:163
void(* glFrameTerminator_t)(void)
Definition: mgltypes.h:103
void(* glBindSampler_t)(GLuint unit, GLuint sampler)
Definition: mgltypes.h:98
GLint(* glBindFragDataLocation_t)(GLuint program, GLuint colorNumber, const char *name)
Definition: mgltypes.h:127
void(* glBindVertexArray_t)(GLuint array)
Definition: mgltypes.h:114
void(* glBindBuffer_t)(GLenum target, GLuint buffer)
Definition: mgltypes.h:146
void(* glGetProgramInfoLog_t)(GLuint program, GLsizei maxLength, GLsizei *length, GLchar *infoLog)
Definition: mgltypes.h:159
void(* glProgramUniform2f_t)(GLuint program, GLint location, GLfloat v0, GLfloat v1)
Definition: mgltypes.h:173
void(* glEndQuery_t)(GLenum target)
Definition: mgltypes.h:208
void(* glGetShaderiv_t)(GLuint shader, GLenum pname, GLint *params)
Definition: mgltypes.h:136
void(* glFramebufferRenderbuffer_t)(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
Definition: mgltypes.h:90
void(* glGetProgramiv_t)(GLuint program, GLenum pname, GLint *params)
Definition: mgltypes.h:132
GLint(* glGetUniformLocation_t)(GLuint program, const GLchar *name)
Definition: mgltypes.h:142
void(* glFramebufferTexture2D_t)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
Definition: mgltypes.h:88
void(* glDeleteFramebuffers_t)(GLsizei, const GLuint *)
Definition: mgltypes.h:92
void(* glGetShaderInfoLog_t)(GLuint shader, GLsizei maxLength, GLsizei *length, GLchar *infoLog)
Definition: mgltypes.h:118
void(* glGetAttachedShaders_t)(GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders)
Definition: mgltypes.h:123
void(* glVertexAttribBinding_t)(GLuint attribindex, GLuint bindingindex)
Definition: mgltypes.h:181
void(* glLabelObject_t)(GLenum type, GLuint object, GLsizei length, const GLchar *label)
Definition: mgltypes.h:104
PRAGMA45(GCC diagnostic push) PRAGMA45(GCC diagnostic ignored "-Wredundant-decls") PRAGMA45(GCC diagnostic pop) RENDER_OPENGL_MGLDEFINES_H typedef void(*glGenRenderbuffers_t)(GLsizei
void(* glBindAttribLocation_t)(GLuint program, GLuint index, const GLchar *name)
Definition: mgltypes.h:161
void(* glVertexAttribPointer_t)(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer)
Definition: mgltypes.h:150
void(* glUniform1f_t)(GLint location, GLfloat v0)
Definition: mgltypes.h:153
void(* glEnableVertexAttribArray_t)(GLuint index)
Definition: mgltypes.h:149
void(* glDeleteQueries_t)(GLsizei n, const GLuint *ids)
Definition: mgltypes.h:209
void(* glRenderbufferStorage_t)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
Definition: mgltypes.h:83
void(* glGenBuffers_t)(GLsizei n, GLuint *buffers)
Definition: mgltypes.h:144
void(* glPushDebugGroup_t)(GLenum source, GLuint id, GLsizei length, const GLchar *message)
Definition: mgltypes.h:199
GLenum(* glCheckFramebufferStatus_t)(GLenum target)
Definition: mgltypes.h:170
void(* glDeleteProgram_t)(GLuint program)
Definition: mgltypes.h:130
void(* glCompileShader_t)(GLuint shader)
Definition: mgltypes.h:138
void(* glDeleteRenderbuffers_t)(GLsizei, const GLuint *)
Definition: mgltypes.h:93
void(* glDisableVertexAttribArray_t)(GLuint index)
Definition: mgltypes.h:116
void(* glUniform4f_t)(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3)
Definition: mgltypes.h:156
void(* glValidateProgram_t)(GLuint program)
Definition: mgltypes.h:158
void(* glDeleteBuffers_t)(GLsizei n, GLuint *buffers)
Definition: mgltypes.h:145
void(* glGenQueries_t)(GLsizei n, GLuint *ids)
Definition: mgltypes.h:206
void(* glGetQueryObjectui64v_t)(GLuint id, GLenum pname, uint64_t *params)
Definition: mgltypes.h:212
void(* glGenSamplers_t)(GLsizei count, GLuint *samplers)
Definition: mgltypes.h:95
void(* glShaderSource_t)(GLuint shader, GLsizei count, const GLchar **string, const GLint *length)
Definition: mgltypes.h:139
void(* glInvalidateTexImage_t)(GLuint texture, GLint level)
Definition: mgltypes.h:192
int size()
Definition: emotedb.cpp:306
ShadersManager shaders