213 | | // there is no analog to the ARB function in GL 2.0 (the functionality is probably moved into glGetIntegerv(GL_CURRENT_PROGRAM)) |
214 | | // so we can't represent it in this FUNC2 system, so just pretend it doesn't exist |
215 | | FUNC2(void, glDetachObjectARB, glDetachShader, "2.0", (GLhandleARB containerObj, GLhandleARB attachedObj)) |
216 | | FUNC2(GLhandleARB, glCreateShaderObjectARB, glCreateShader, "2.0", (GLenum shaderType)) |
217 | | FUNC2(void, glShaderSourceARB, glShaderSource, "2.0", (GLhandleARB shaderObj, GLsizei count, const char **string, const GLint *length)) |
218 | | FUNC2(void, glCompileShaderARB, glCompileShader, "2.0", (GLhandleARB shaderObj)) |
219 | | FUNC2(GLhandleARB, glCreateProgramObjectARB, glCreateProgram, "2.0", (void)) |
220 | | FUNC2(void, glAttachObjectARB, glAttachShader, "2.0", (GLhandleARB containerObj, GLhandleARB obj)) |
221 | | FUNC2(void, glLinkProgramARB, glLinkProgram, "2.0", (GLhandleARB programObj)) |
222 | | FUNC2(void, glUseProgramObjectARB, glUseProgram, "2.0", (GLhandleARB programObj)) |
223 | | FUNC2(void, glValidateProgramARB, glValidateProgram, "2.0", (GLhandleARB programObj)) |
224 | | FUNC2(void, glUniform1fARB, glUniform1f, "2.0", (GLint location, GLfloat v0)) |
225 | | FUNC2(void, glUniform2fARB, glUniform2f, "2.0", (GLint location, GLfloat v0, GLfloat v1)) |
226 | | FUNC2(void, glUniform3fARB, glUniform3f, "2.0", (GLint location, GLfloat v0, GLfloat v1, GLfloat v2)) |
227 | | FUNC2(void, glUniform4fARB, glUniform4f, "2.0", (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3)) |
228 | | FUNC2(void, glUniform1iARB, glUniform1i, "2.0", (GLint location, GLint v0)) |
229 | | FUNC2(void, glUniform2iARB, glUniform2i, "2.0", (GLint location, GLint v0, GLint v1)) |
230 | | FUNC2(void, glUniform3iARB, glUniform3i, "2.0", (GLint location, GLint v0, GLint v1, GLint v2)) |
231 | | FUNC2(void, glUniform4iARB, glUniform4i, "2.0", (GLint location, GLint v0, GLint v1, GLint v2, GLint v3)) |
232 | | FUNC2(void, glUniform1fvARB, glUniform1fv, "2.0", (GLint location, GLsizei count, const GLfloat *value)) |
233 | | FUNC2(void, glUniform2fvARB, glUniform2fv, "2.0", (GLint location, GLsizei count, const GLfloat *value)) |
234 | | FUNC2(void, glUniform3fvARB, glUniform3fv, "2.0", (GLint location, GLsizei count, const GLfloat *value)) |
235 | | FUNC2(void, glUniform4fvARB, glUniform4fv, "2.0", (GLint location, GLsizei count, const GLfloat *value)) |
236 | | FUNC2(void, glUniform1ivARB, glUniform1iv, "2.0", (GLint location, GLsizei count, const GLint *value)) |
237 | | FUNC2(void, glUniform2ivARB, glUniform2iv, "2.0", (GLint location, GLsizei count, const GLint *value)) |
238 | | FUNC2(void, glUniform3ivARB, glUniform3iv, "2.0", (GLint location, GLsizei count, const GLint *value)) |
239 | | FUNC2(void, glUniform4ivARB, glUniform4iv, "2.0", (GLint location, GLsizei count, const GLint *value)) |
240 | | FUNC2(void, glUniformMatrix2fvARB, glUniformMatrix2fv, "2.0", (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)) |
241 | | FUNC2(void, glUniformMatrix3fvARB, glUniformMatrix3fv, "2.0", (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)) |
242 | | FUNC2(void, glUniformMatrix4fvARB, glUniformMatrix4fv, "2.0", (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)) |
243 | | FUNC3(void, glGetObjectParameterfvARB, glGetProgramfv, "2.0", (GLhandleARB obj, GLenum pname, GLfloat *params)) |
244 | | FUNC3(void, glGetObjectParameterfvARB, glGetShaderfv, "2.0", (GLhandleARB obj, GLenum pname, GLfloat *params)) |
245 | | FUNC3(void, glGetObjectParameterivARB, glGetProgramiv, "2.0", (GLhandleARB obj, GLenum pname, GLint *params)) |
246 | | FUNC3(void, glGetObjectParameterivARB, glGetShaderiv, "2.0", (GLhandleARB obj, GLenum pname, GLint *params)) |
247 | | FUNC3(void, glGetInfoLogARB, glGetProgramInfoLog, "2.0", (GLhandleARB obj, GLsizei maxLength, GLsizei *length, char *infoLog)) |
248 | | FUNC3(void, glGetInfoLogARB, glGetShaderInfoLog, "2.0", (GLhandleARB obj, GLsizei maxLength, GLsizei *length, char *infoLog)) |
249 | | FUNC2(void, glGetAttachedObjectsARB, glGetAttachedShaders, "2.0", (GLhandleARB containerObj, GLsizei maxCount, GLsizei *count, GLhandleARB *obj)) |
250 | | FUNC2(GLint, glGetUniformLocationARB, glGetUniformLocation, "2.0", (GLhandleARB programObj, const char *name)) |
251 | | FUNC2(void, glGetActiveUniformARB, glGetActiveUniform, "2.0", (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, char *name)) |
252 | | FUNC2(void, glGetUniformfvARB, glGetUniformfv, "2.0", (GLhandleARB programObj, GLint location, GLfloat *params)) |
253 | | FUNC2(void, glGetUniformivARB, glGetUniformiv, "2.0", (GLhandleARB programObj, GLint location, GLint *params)) |
254 | | FUNC2(void, glGetShaderSourceARB, glGetShaderSource, "2.0", (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *source)) |
| 213 | // there is no analog to the ARB function in GL 2.0 (the functionality is probably moved into glGetIntegerv(GL_CURRENT_PROGRAM)) |
| 214 | // so we can't represent it in this FUNC2 system, so just pretend it doesn't exist |
| 215 | FUNC(void, glDetachShader, (GLuint containerObj, GLuint attachedObj)) |
| 216 | FUNC(GLuint, glCreateShader, (GLenum shaderType)) |
| 217 | // technically, what the (const char**) params here are defined as (GLchar**) in the API |
| 218 | FUNC(void, glShaderSource, (GLuint shaderObj, GLsizei count, const char **string, const GLint *length)) |
| 219 | FUNC(void, glCompileShader, (GLuint shaderObj)) |
| 220 | FUNC(GLuint, glCreateProgram, (void)) |
| 221 | FUNC(void, glAttachShader, (GLuint containerObj, GLuint obj)) |
| 222 | FUNC(void, glLinkProgram, (GLuint programObj)) |
| 223 | FUNC(void, glUseProgram, (GLuint programObj)) |
| 224 | FUNC(void, glValidateProgram, (GLuint programObj)) |
| 225 | FUNC(void, glUniform1f, (GLint location, GLfloat v0)) |
| 226 | FUNC(void, glUniform2f, (GLint location, GLfloat v0, GLfloat v1)) |
| 227 | FUNC(void, glUniform3f, (GLint location, GLfloat v0, GLfloat v1, GLfloat v2)) |
| 228 | FUNC(void, glUniform4f, (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3)) |
| 229 | FUNC(void, glUniform1i, (GLint location, GLint v0)) |
| 230 | FUNC(void, glUniform2i, (GLint location, GLint v0, GLint v1)) |
| 231 | FUNC(void, glUniform3i, (GLint location, GLint v0, GLint v1, GLint v2)) |
| 232 | FUNC(void, glUniform4i, (GLint location, GLint v0, GLint v1, GLint v2, GLint v3)) |
| 233 | FUNC(void, glUniform1fv, (GLint location, GLsizei count, const GLfloat *value)) |
| 234 | FUNC(void, glUniform2fv, (GLint location, GLsizei count, const GLfloat *value)) |
| 235 | FUNC(void, glUniform3fv, (GLint location, GLsizei count, const GLfloat *value)) |
| 236 | FUNC(void, glUniform4fv, (GLint location, GLsizei count, const GLfloat *value)) |
| 237 | FUNC(void, glUniform1iv, (GLint location, GLsizei count, const GLint *value)) |
| 238 | FUNC(void, glUniform2iv, (GLint location, GLsizei count, const GLint *value)) |
| 239 | FUNC(void, glUniform3iv, (GLint location, GLsizei count, const GLint *value)) |
| 240 | FUNC(void, glUniform4iv, (GLint location, GLsizei count, const GLint *value)) |
| 241 | FUNC(void, glUniformMatrix2fv, (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)) |
| 242 | FUNC(void, glUniformMatrix3fv, (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)) |
| 243 | FUNC(void, glUniformMatrix4fv, (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)) |
| 244 | FUNC(void, glGetProgramfv, (GLuint obj, GLenum pname, GLfloat *params)) |
| 245 | FUNC(void, glGetShaderfv, (GLuint obj, GLenum pname, GLfloat *params)) |
| 246 | FUNC(void, glGetProgramiv, (GLuint obj, GLenum pname, GLint *params)) |
| 247 | FUNC(void, glGetShaderiv, (GLuint obj, GLenum pname, GLint *params)) |
| 248 | FUNC(void, glGetProgramInfoLog, (GLuint obj, GLsizei maxLength, GLsizei *length, char *infoLog)) |
| 249 | FUNC(void, glGetShaderInfoLog, (GLuint obj, GLsizei maxLength, GLsizei *length, char *infoLog)) |
| 250 | FUNC(void, glGetAttachedShaders, (GLuint containerObj, GLsizei maxCount, GLsizei *count, GLuint *obj)) |
| 251 | FUNC(GLint, glGetUniformLocation, (GLuint programObj, const char *name)) |
| 252 | FUNC(void, glGetActiveUniform, (GLuint programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, char *name)) |
| 253 | FUNC(void, glGetUniformfv, (GLuint programObj, GLint location, GLfloat *params)) |
| 254 | FUNC(void, glGetUniformiv, (GLuint programObj, GLint location, GLint *params)) |
| 255 | FUNC(void, glGetShaderSource, (GLuint obj, GLsizei maxLength, GLsizei *length, GLcharARB *source)) |
257 | | FUNC2(void, glVertexAttrib1fARB, glVertexAttrib1f, "2.0", (GLuint index, GLfloat v0)) |
258 | | FUNC2(void, glVertexAttrib1sARB, glVertexAttrib1s, "2.0", (GLuint index, GLshort v0)) |
259 | | FUNC2(void, glVertexAttrib1dARB, glVertexAttrib1d, "2.0", (GLuint index, GLdouble v0)) |
260 | | FUNC2(void, glVertexAttrib2fARB, glVertexAttrib2f, "2.0", (GLuint index, GLfloat v0, GLfloat v1)) |
261 | | FUNC2(void, glVertexAttrib2sARB, glVertexAttrib2s, "2.0", (GLuint index, GLshort v0, GLshort v1)) |
262 | | FUNC2(void, glVertexAttrib2dARB, glVertexAttrib2d, "2.0", (GLuint index, GLdouble v0, GLdouble v1)) |
263 | | FUNC2(void, glVertexAttrib3fARB, glVertexAttrib3f, "2.0", (GLuint index, GLfloat v0, GLfloat v1, GLfloat v2)) |
264 | | FUNC2(void, glVertexAttrib3sARB, glVertexAttrib3s, "2.0", (GLuint index, GLshort v0, GLshort v1, GLshort v2)) |
265 | | FUNC2(void, glVertexAttrib3dARB, glVertexAttrib3d, "2.0", (GLuint index, GLdouble v0, GLdouble v1, GLdouble v2)) |
266 | | FUNC2(void, glVertexAttrib4fARB, glVertexAttrib4f, "2.0", (GLuint index, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3)) |
267 | | FUNC2(void, glVertexAttrib4sARB, glVertexAttrib4s, "2.0", (GLuint index, GLshort v0, GLshort v1, GLshort v2, GLshort v3)) |
268 | | FUNC2(void, glVertexAttrib4dARB, glVertexAttrib4d, "2.0", (GLuint index, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3)) |
269 | | FUNC2(void, glVertexAttrib4NubARB, glVertexAttrib4Nub, "2.0", (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w)) |
270 | | FUNC2(void, glVertexAttrib1fvARB, glVertexAttrib1fv, "2.0", (GLuint index, const GLfloat *v)) |
271 | | FUNC2(void, glVertexAttrib1svARB, glVertexAttrib1sv, "2.0", (GLuint index, const GLshort *v)) |
272 | | FUNC2(void, glVertexAttrib1dvARB, glVertexAttrib1dv, "2.0", (GLuint index, const GLdouble *v)) |
273 | | FUNC2(void, glVertexAttrib2fvARB, glVertexAttrib2fv, "2.0", (GLuint index, const GLfloat *v)) |
274 | | FUNC2(void, glVertexAttrib2svARB, glVertexAttrib2sv, "2.0", (GLuint index, const GLshort *v)) |
275 | | FUNC2(void, glVertexAttrib2dvARB, glVertexAttrib2dv, "2.0", (GLuint index, const GLdouble *v)) |
276 | | FUNC2(void, glVertexAttrib3fvARB, glVertexAttrib3fv, "2.0", (GLuint index, const GLfloat *v)) |
277 | | FUNC2(void, glVertexAttrib3svARB, glVertexAttrib3sv, "2.0", (GLuint index, const GLshort *v)) |
278 | | FUNC2(void, glVertexAttrib3dvARB, glVertexAttrib3dv, "2.0", (GLuint index, const GLdouble *v)) |
279 | | FUNC2(void, glVertexAttrib4fvARB, glVertexAttrib4fv, "2.0", (GLuint index, const GLfloat *v)) |
280 | | FUNC2(void, glVertexAttrib4svARB, glVertexAttrib4sv, "2.0", (GLuint index, const GLshort *v)) |
281 | | FUNC2(void, glVertexAttrib4dvARB, glVertexAttrib4dv, "2.0", (GLuint index, const GLdouble *v)) |
282 | | FUNC2(void, glVertexAttrib4ivARB, glVertexAttrib4iv, "2.0", (GLuint index, const GLint *v)) |
283 | | FUNC2(void, glVertexAttrib4bvARB, glVertexAttrib4bv, "2.0", (GLuint index, const GLbyte *v)) |
284 | | FUNC2(void, glVertexAttrib4ubvARB, glVertexAttrib4ubv, "2.0", (GLuint index, const GLubyte *v)) |
285 | | FUNC2(void, glVertexAttrib4usvARB, glVertexAttrib4usv, "2.0", (GLuint index, const GLushort *v)) |
286 | | FUNC2(void, glVertexAttrib4uivARB, glVertexAttrib4uiv, "2.0", (GLuint index, const GLuint *v)) |
287 | | FUNC2(void, glVertexAttrib4NbvARB, glVertexAttrib4Nbv, "2.0", (GLuint index, const GLbyte *v)) |
288 | | FUNC2(void, glVertexAttrib4NsvARB, glVertexAttrib4Nsv, "2.0", (GLuint index, const GLshort *v)) |
289 | | FUNC2(void, glVertexAttrib4NivARB, glVertexAttrib4Niv, "2.0", (GLuint index, const GLint *v)) |
290 | | FUNC2(void, glVertexAttrib4NubvARB, glVertexAttrib4Nubv, "2.0", (GLuint index, const GLubyte *v)) |
291 | | FUNC2(void, glVertexAttrib4NusvARB, glVertexAttrib4Nusv, "2.0", (GLuint index, const GLushort *v)) |
292 | | FUNC2(void, glVertexAttrib4NuivARB, glVertexAttrib4Nuiv, "2.0", (GLuint index, const GLuint *v)) |
293 | | FUNC2(void, glVertexAttribPointerARB, glVertexAttribPointer, "2.0", (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer)) |
294 | | FUNC2(void, glEnableVertexAttribArrayARB, glEnableVertexAttribArray, "2.0", (GLuint index)) |
295 | | FUNC2(void, glDisableVertexAttribArrayARB, glDisableVertexAttribArray, "2.0", (GLuint index)) |
296 | | FUNC2(void, glBindAttribLocationARB, glBindAttribLocation, "2.0", (GLhandleARB programObj, GLuint index, const char *name)) |
297 | | FUNC2(void, glGetActiveAttribARB, glGetActiveAttrib, "2.0", (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, int *size, GLenum *type, char *name)) |
298 | | FUNC2(GLint, glGetAttribLocationARB, glGetAttribLocation, "2.0", (GLhandleARB programObj, const char *name)) |
299 | | FUNC2(void, glGetVertexAttribdvARB, glGetVertexAttribdv, "2.0", (GLuint index, GLenum pname, GLdouble *params)) |
300 | | FUNC2(void, glGetVertexAttribfvARB, glGetVertexAttribfv, "2.0", (GLuint index, GLenum pname, GLfloat *params)) |
301 | | FUNC2(void, glGetVertexAttribivARB, glGetVertexAttribiv, "2.0", (GLuint index, GLenum pname, GLint *params)) |
302 | | FUNC2(void, glGetVertexAttribPointervARB, glGetVertexAttribPointerv, "2.0", (GLuint index, GLenum pname, void **pointer)) |
| 258 | FUNC(void, glVertexAttrib1f, (GLuint index, GLfloat v0)) |
| 259 | FUNC(void, glVertexAttrib1s, (GLuint index, GLshort v0)) |
| 260 | FUNC(void, glVertexAttrib1d, (GLuint index, GLdouble v0)) |
| 261 | FUNC(void, glVertexAttrib2f, (GLuint index, GLfloat v0, GLfloat v1)) |
| 262 | FUNC(void, glVertexAttrib2s, (GLuint index, GLshort v0, GLshort v1)) |
| 263 | FUNC(void, glVertexAttrib2d, (GLuint index, GLdouble v0, GLdouble v1)) |
| 264 | FUNC(void, glVertexAttrib3f, (GLuint index, GLfloat v0, GLfloat v1, GLfloat v2)) |
| 265 | FUNC(void, glVertexAttrib3s, (GLuint index, GLshort v0, GLshort v1, GLshort v2)) |
| 266 | FUNC(void, glVertexAttrib3d, (GLuint index, GLdouble v0, GLdouble v1, GLdouble v2)) |
| 267 | FUNC(void, glVertexAttrib4f, (GLuint index, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3)) |
| 268 | FUNC(void, glVertexAttrib4s, (GLuint index, GLshort v0, GLshort v1, GLshort v2, GLshort v3)) |
| 269 | FUNC(void, glVertexAttrib4d, (GLuint index, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3)) |
| 270 | FUNC(void, glVertexAttrib4Nub, (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w)) |
| 271 | FUNC(void, glVertexAttrib1fv, (GLuint index, const GLfloat *v)) |
| 272 | FUNC(void, glVertexAttrib1sv, (GLuint index, const GLshort *v)) |
| 273 | FUNC(void, glVertexAttrib1dv, (GLuint index, const GLdouble *v)) |
| 274 | FUNC(void, glVertexAttrib2fv, (GLuint index, const GLfloat *v)) |
| 275 | FUNC(void, glVertexAttrib2sv, (GLuint index, const GLshort *v)) |
| 276 | FUNC(void, glVertexAttrib2dv, (GLuint index, const GLdouble *v)) |
| 277 | FUNC(void, glVertexAttrib3fv, (GLuint index, const GLfloat *v)) |
| 278 | FUNC(void, glVertexAttrib3sv, (GLuint index, const GLshort *v)) |
| 279 | FUNC(void, glVertexAttrib3dv, (GLuint index, const GLdouble *v)) |
| 280 | FUNC(void, glVertexAttrib4fv, (GLuint index, const GLfloat *v)) |
| 281 | FUNC(void, glVertexAttrib4sv, (GLuint index, const GLshort *v)) |
| 282 | FUNC(void, glVertexAttrib4dv, (GLuint index, const GLdouble *v)) |
| 283 | FUNC(void, glVertexAttrib4iv, (GLuint index, const GLint *v)) |
| 284 | FUNC(void, glVertexAttrib4bv, (GLuint index, const GLbyte *v)) |
| 285 | FUNC(void, glVertexAttrib4ubv, (GLuint index, const GLubyte *v)) |
| 286 | FUNC(void, glVertexAttrib4usv, (GLuint index, const GLushort *v)) |
| 287 | FUNC(void, glVertexAttrib4uiv, (GLuint index, const GLuint *v)) |
| 288 | FUNC(void, glVertexAttrib4Nbv, (GLuint index, const GLbyte *v)) |
| 289 | FUNC(void, glVertexAttrib4Nsv, (GLuint index, const GLshort *v)) |
| 290 | FUNC(void, glVertexAttrib4Niv, (GLuint index, const GLint *v)) |
| 291 | FUNC(void, glVertexAttrib4Nubv, (GLuint index, const GLubyte *v)) |
| 292 | FUNC(void, glVertexAttrib4Nusv, (GLuint index, const GLushort *v)) |
| 293 | FUNC(void, glVertexAttrib4Nuiv, (GLuint index, const GLuint *v)) |
| 294 | FUNC(void, glVertexAttribPointer, (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer)) |
| 295 | FUNC(void, glEnableVertexAttribArray, (GLuint index)) |
| 296 | FUNC(void, glDisableVertexAttribArray, (GLuint index)) |
| 297 | FUNC(void, glBindAttribLocation, (GLuint programObj, GLuint index, const char *name)) |
| 298 | FUNC(void, glGetActiveAttrib, (GLuint programObj, GLuint index, GLsizei maxLength, GLsizei *length, int *size, GLenum *type, char *name)) |
| 299 | FUNC(GLint, glGetAttribLocation, (GLuint programObj, const char *name)) |
| 300 | FUNC(void, glGetVertexAttribdv, (GLuint index, GLenum pname, GLdouble *params)) |
| 301 | FUNC(void, glGetVertexAttribfv, (GLuint index, GLenum pname, GLfloat *params)) |
| 302 | FUNC(void, glGetVertexAttribiv, (GLuint index, GLenum pname, GLint *params)) |
| 303 | FUNC(void, glGetVertexAttribPointerv, (GLuint index, GLenum pname, void **pointer)) |