22 #ifndef RENDER_OPENGL_MGLTYPES_H
23 #define RENDER_OPENGL_MGLTYPES_H
29 #include <GLES/glext.h>
30 #define APIENTRY GL_APIENTRY
34 #define GL_GLEXT_PROTOTYPES 1
40 PRAGMA48(GCC diagnostic ignored
"-Wshadow")
43 PRAGMA45(GCC diagnostic ignored
"-Wredundant-decls")
44 #include <SDL_opengl.h>
49 PRAGMA45(GCC diagnostic ignored
"-Wredundant-decls")
53 #ifdef __native_client__
56 #if defined(__APPLE__)
57 #include <OpenGL/glext.h>
62 PRAGMA45(GCC diagnostic ignored
"-Wredundant-decls")
72 RENDER_OPENGL_MGLDEFINES_H
75 #if defined(__GXX_EXPERIMENTAL_CXX0X__)
80 typedef void (APIENTRY *glGenRenderbuffers_t)(GLsizei, GLuint *);
84 GLenum internalformat, GLsizei width, GLsizei height);
89 GLenum attachment, GLenum textarget, GLuint texture, GLint level);
91 GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
97 (GLsizei count,
const GLuint * samplers);
100 (GLuint sampler, GLenum pname, GLint param);
102 GLenum severity, GLsizei count,
const GLuint* ids, GLboolean enabled);
105 GLsizei length,
const GLchar *label);
107 GLsizei bufSize, GLsizei *length, GLchar *label);
109 (GLsizei length,
const char *marker);
111 (GLsizei length,
const char *marker);
119 GLsizei maxLength, GLsizei *length, GLchar *infoLog);
121 GLsizei bufSize, GLsizei *length, GLchar *source);
124 GLsizei maxCount, GLsizei *count, GLuint *
shaders);
126 GLsizei bufSize, GLsizei *length, GLint *
size, GLenum *type, GLchar *name);
128 GLuint colorNumber,
const char *name);
129 #ifndef __native_client__
133 GLenum pname, GLint *params);
137 GLenum pname, GLint *params);
140 GLsizei count,
const GLchar **string,
const GLint *length);
148 const GLvoid *
data, GLenum usage);
151 GLenum type, GLboolean normalized, GLsizei stride,
const GLvoid *pointer);
155 GLfloat v0, GLfloat v1);
157 GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
160 GLsizei maxLength, GLsizei *length, GLchar *infoLog);
162 GLuint index,
const GLchar *name);
169 GLfloat v0, GLfloat v1, GLfloat v2);
172 GLint location, GLfloat v0);
174 GLint location, GLfloat v0, GLfloat v1);
176 GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
178 GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
180 GLuint buffer, GLintptr offset, GLintptr stride);
182 GLuint bindingindex);
184 GLint
size, GLenum type, GLboolean normalized, GLuint relativeoffset);
186 const GLuint *buffers,
const GLuint *offsets,
const GLsizei *strides);
189 GLint
size, GLenum type, GLuint relativeoffset);
191 GLenum type, GLsizei stride,
const GLvoid * pointer);
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);
200 GLsizei length,
const GLchar * message);
203 GLsizei length,
const GLchar *label);
205 GLenum internalformat, GLsizei width, GLsizei height);
211 GLenum pname, GLint *params);
213 GLenum pname, uint64_t *params);
215 GLenum target, GLint level, GLint xoffset, GLint yoffset,
216 GLsizei width, GLsizei height, GLenum format, GLenum type,
219 GLint level, GLint xoffset, GLint yoffset,
220 GLsizei width, GLsizei height, GLenum format, GLenum type,
223 GLenum format, GLenum type,
const void *
data);
225 GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height,
226 GLsizei depth, GLenum format, GLenum type,
const void *
data);
229 typedef void (APIENTRY *
GLDEBUGPROC_t) (GLenum source, GLenum type, GLuint id,
230 GLenum severity, GLsizei length,
const GLchar *message, GLvoid *userParam);
233 const void *userParam);
237 typedef const char* (APIENTRY * wglGetExtensionsString_t) (HDC hdc);
void(* glUseProgram_t)(GLuint program)
void(* glObjectLabel_t)(GLenum identifier, GLuint name, GLsizei length, const GLchar *label)
void(* glDebugMessageCallback_t)(GLDEBUGPROC_t callback, const void *userParam)
void(* glGetObjectLabel_t)(GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label)
void(* glSamplerParameteri_t)(GLuint sampler, GLenum pname, GLint param)
void(* glProgramUniform4f_t)(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3)
GLboolean(* glIsBuffer_t)(GLuint buffer)
void(* glVertexAttribIFormat_t)(GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset)
void(* glInsertEventMarker_t)(GLsizei length, const char *marker)
void(* glGetShaderSource_t)(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source)
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)
void(* glDeleteShader_t)(GLenum shader)
GLuint *typedef void(* glBindRenderbuffer_t)(GLenum target, GLuint renderbuffer)
void(* glDeleteVertexArrays_t)(GLsizei n, GLuint *arrays)
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)
void(* glDetachShader_t)(GLuint program, GLuint shader)
GLuint(* glCreateProgram_t)(void)
void(* glProgramUniform3f_t)(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2)
void(* glProgramUniform1f_t)(GLuint program, GLint location, GLfloat v0)
void(* glClearTexImage_t)(GLuint texture, GLint level, GLenum format, GLenum type, const void *data)
void(* glUniform2f_t)(GLint location, GLfloat v0, GLfloat v1)
void(* glUniform3f_t)(GLint location, GLfloat v0, GLfloat v1, GLfloat v2)
void(* glPopDebugGroup_t)(void)
void(* glDeleteSamplers_t)(GLsizei count, const GLuint *samplers)
void(* glBufferData_t)(GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage)
void(* glGenVertexArrays_t)(GLsizei n, GLuint *arrays)
void(* glDebugMessageControl_t)(GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled)
void(* glVertexAttribIPointer_t)(GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
void(* glBindVertexBuffers_t)(GLuint first, GLsizei count, const GLuint *buffers, const GLuint *offsets, const GLsizei *strides)
const GLubyte *(* glGetStringi_t)(GLenum, GLuint)
void(* glVertexAttribFormat_t)(GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset)
void(* glGenFramebuffers_t)(GLsizei n, GLuint *framebuffers)
void(* glGetQueryObjectiv_t)(GLuint id, GLenum pname, GLint *params)
void(* glTextureSubImage2D_t)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels)
void(* glGetActiveUniform_t)(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name)
void(* glBindVertexBuffer_t)(GLuint bindingindex, GLuint buffer, GLintptr offset, GLintptr stride)
void(* GLDEBUGPROC_t)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *message, GLvoid *userParam)
GLint(* glGetAttribLocation_t)(GLuint program, const GLchar *name)
void(* glBeginQuery_t)(GLenum target, GLuint id)
void(* glPushGroupMarker_t)(GLsizei length, const char *marker)
void(* glLinkProgram_t)(GLuint program)
void(* glBindFramebuffer_t)(GLenum target, GLuint framebuffer)
GLuint(* glCreateShader_t)(GLenum shaderType)
void(* glTexStorage2D_t)(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height)
void(* glPopGroupMarker_t)(void)
void(* glAttachShader_t)(GLuint program, GLuint shader)
void(* glTextureSubImage2DEXT_t)(GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels)
void(* glActiveTexture_t)(GLenum texture)
void(* glFrameTerminator_t)(void)
void(* glBindSampler_t)(GLuint unit, GLuint sampler)
GLint(* glBindFragDataLocation_t)(GLuint program, GLuint colorNumber, const char *name)
void(* glBindVertexArray_t)(GLuint array)
void(* glBindBuffer_t)(GLenum target, GLuint buffer)
void(* glGetProgramInfoLog_t)(GLuint program, GLsizei maxLength, GLsizei *length, GLchar *infoLog)
void(* glProgramUniform2f_t)(GLuint program, GLint location, GLfloat v0, GLfloat v1)
void(* glEndQuery_t)(GLenum target)
void(* glGetShaderiv_t)(GLuint shader, GLenum pname, GLint *params)
void(* glFramebufferRenderbuffer_t)(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
void(* glGetProgramiv_t)(GLuint program, GLenum pname, GLint *params)
GLint(* glGetUniformLocation_t)(GLuint program, const GLchar *name)
void(* glFramebufferTexture2D_t)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
void(* glDeleteFramebuffers_t)(GLsizei, const GLuint *)
void(* glGetShaderInfoLog_t)(GLuint shader, GLsizei maxLength, GLsizei *length, GLchar *infoLog)
void(* glGetAttachedShaders_t)(GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders)
void(* glVertexAttribBinding_t)(GLuint attribindex, GLuint bindingindex)
void(* glLabelObject_t)(GLenum type, GLuint object, GLsizei length, const GLchar *label)
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)
void(* glVertexAttribPointer_t)(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer)
void(* glUniform1f_t)(GLint location, GLfloat v0)
void(* glEnableVertexAttribArray_t)(GLuint index)
void(* glDeleteQueries_t)(GLsizei n, const GLuint *ids)
void(* glRenderbufferStorage_t)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
void(* glGenBuffers_t)(GLsizei n, GLuint *buffers)
void(* glPushDebugGroup_t)(GLenum source, GLuint id, GLsizei length, const GLchar *message)
GLenum(* glCheckFramebufferStatus_t)(GLenum target)
void(* glDeleteProgram_t)(GLuint program)
void(* glCompileShader_t)(GLuint shader)
void(* glDeleteRenderbuffers_t)(GLsizei, const GLuint *)
void(* glDisableVertexAttribArray_t)(GLuint index)
void(* glUniform4f_t)(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3)
void(* glValidateProgram_t)(GLuint program)
void(* glDeleteBuffers_t)(GLsizei n, GLuint *buffers)
void(* glGenQueries_t)(GLsizei n, GLuint *ids)
void(* glGetQueryObjectui64v_t)(GLuint id, GLenum pname, uint64_t *params)
void(* glGenSamplers_t)(GLsizei count, GLuint *samplers)
void(* glShaderSource_t)(GLuint shader, GLsizei count, const GLchar **string, const GLint *length)
void(* glInvalidateTexImage_t)(GLuint texture, GLint level)