99 typedef void (*DebugCallbackFunction)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length,
const GLchar* message,
const void* userParam);
101 typedef void (__stdcall *glActiveTextureFunction)(GLenum texture);
102 typedef void (__stdcall *glAttachShaderFunction)(GLuint, GLuint);
103 typedef void (__stdcall *glBindBufferFunction)(GLenum, GLuint);
104 typedef void (__stdcall *glBindFramebufferFunction)(GLenum target, GLuint framebuffer);
105 typedef void (__stdcall *glBindVertexArrayFunction)(GLuint array);
106 typedef void (__stdcall *glBufferDataFunction)(GLenum, GLsizeiptr,
const void*, GLenum);
107 typedef GLenum (__stdcall *glCheckFramebufferStatusFunction)(GLenum target);
108 typedef void (__stdcall *glClearDepthfFunction)(GLclampf);
109 typedef void (__stdcall *glCompileShaderFunction)(GLuint);
110 typedef void (__stdcall *glCompressedTexImage2DFunction)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei,
const void*);
111 typedef GLuint (__stdcall *glCreateProgramFunction)();
112 typedef GLuint (__stdcall *glCreateShaderFunction)(GLenum type);
113 typedef void (__stdcall *glDebugMessageCallbackFunction)(DebugCallbackFunction,
const void*);
114 typedef void (__stdcall *glDeleteBuffersFunction)(GLsizei,
const GLuint*);
115 typedef void (__stdcall *glDeleteFramebuffersFunction)(GLsizei n,
const GLuint * framebuffers);
116 typedef void (__stdcall *glDeleteProgramFunction)(GLuint);
117 typedef void (__stdcall *glDeleteShaderFunction)(GLuint);
118 typedef void (__stdcall *glDeleteTexturesFunction)(GLsizei,
const GLuint*);
119 typedef void (__stdcall *glDeleteVertexArraysFunction)(GLsizei,
const GLuint*);
120 typedef void (__stdcall *glDetachShaderFunction)(GLuint, GLuint);
121 typedef void (__stdcall *glDrawArraysFunction)(GLenum, GLint, GLsizei);
122 typedef void (__stdcall *glDrawElementsFunction)(GLenum, GLsizei, GLenum,
const void*);
123 typedef void (__stdcall *glEnableVertexAttribArrayFunction)(GLuint index);
124 typedef void (__stdcall *glFramebufferTexture2DFunction)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
125 typedef void (__stdcall *glGenBuffersFunction)(GLsizei, GLuint*);
126 typedef void (__stdcall *glGenerateMipmapFunction)(GLenum target);
127 typedef void (__stdcall *glGenFramebuffersFunction)(GLsizei n, GLuint *ids);
128 typedef void (__stdcall *glGenTexturesFunction)(GLsizei, GLuint*);
129 typedef void (__stdcall *glGenVertexArraysFunction)(GLsizei n, GLuint *arrays);
130 typedef int (__stdcall *glGetAttribLocationFunction)(GLuint,
const char*);
131 typedef void (__stdcall *glGetProgramInfoLogFunction)(GLuint, GLsizei, GLsizei*,
char*);
132 typedef void (__stdcall *glGetProgramivFunction)(GLuint, GLenum, GLint*);
133 typedef void (__stdcall *glGetShaderInfoLogFunction)(GLuint, GLsizei, GLsizei*,
char*);
134 typedef void (__stdcall *glGetShaderivFunction)(GLuint, GLenum, GLint*);
136 typedef int (__stdcall *glGetUniformLocationFunction)(GLuint,
const char*);
137 typedef GLboolean (__stdcall *glIsProgramFunction)(GLuint program);
138 typedef void (__stdcall *glLinkProgramFunction)(GLuint);
139 typedef void (__stdcall *glReleaseShaderCompilerFunction)();
140 typedef void (__stdcall *glShaderSourceFunction)(GLuint, GLsizei,
const char**,
const GLint*);
141 typedef void (__stdcall *glTexImage2DMultisampleFunction)(GLenum, GLsizei, GLenum, GLsizei, GLsizei, GLboolean);
142 typedef void (__stdcall *glUniform1fFunction)(GLint location, GLfloat x);
143 typedef void (__stdcall *glUniform1fvFunction)(GLint, GLsizei,
const GLfloat*);
144 typedef void (__stdcall *glUniform1iFunction)(GLint, GLint);
145 typedef void (__stdcall *glUniform1uiFunction)(GLint, GLuint);
146 typedef void (__stdcall *glUniform2fFunction)(GLint, GLfloat, GLfloat);
147 typedef void (__stdcall *glUniform2fvFunction)(GLint location, GLsizei count,
const GLfloat* v);
148 typedef void (__stdcall *glUniform3fFunction)(GLint, GLfloat, GLfloat, GLfloat);
149 typedef void (__stdcall *glUniform3fvFunction)(GLint location, GLsizei count,
const GLfloat* v);
150 typedef void (__stdcall *glUniform4fFunction)(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
151 typedef void (__stdcall *glUniform4fvFunction)(GLint location, GLsizei count,
const GLfloat* v);
152 typedef void (__stdcall *glUniformMatrix3fvFunction)(GLint, GLsizei, GLboolean,
const GLfloat*);
153 typedef void (__stdcall *glUniformMatrix4fvFunction)(GLint, GLsizei, GLboolean,
const GLfloat*);
154 typedef void (__stdcall *glUseProgramFunction)(GLuint);
155 typedef void (__stdcall *glVertexAttribPointerFunction)(GLuint, GLint, GLenum, GLboolean, GLsizei,
const void*);
156 typedef void (__stdcall *glVertexAttribIPointerFunction)(GLuint, GLint, GLenum, GLsizei,
const void*);
180 template <
typename T>