Debian Codegraph @

project_files/hwc/rtl/GL.h

raw ◀ ▶
1 Debian patch touch this file
1 #pragma once
2
3 #if defined(__APPLE__) && !defined(EMSCRIPTEN)
4 #include <OpenGL/gl.h>
5 #else
•6 #define GL_GLEXT_PROTOTYPES
7 #include "GL/gl.h"
8 #endif
9
10 /* emscripten cannot find these functions */
11 #ifdef EMSCRIPTEN
12 void glGetProgramInfoLog(GLuint program, GLsizei maxLength, GLsizei *length, GLchar *infoLog);
13 void glLinkProgram(GLuint program);
14 void glUniform1i(GLint location, GLint v0);
15 GLuint glCreateProgram(void);
16 void glUseProgram(GLuint program);
17 void glDeleteProgram(GLuint program);
18 void glGetProgramiv(GLuint program, GLenum pname, GLint *params);
19 void glDeleteShader(GLuint shader);
20 void glBindAttribLocation(GLuint program, GLuint index, const GLchar *name);
21 void glAttachShader(GLuint program, GLuint shader);
22 void glBindBuffer(GLenum target, GLuint buffer);
23 void glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
24 void glEnableVertexAttribArray(GLuint index);
25 void glDisableVertexAttribArray(GLuint index);
26 void glGenBuffers(GLsizei n, GLuint * buffers);
27 void glDeleteBuffers(GLsizei n, const GLuint * buffers);
28 void glUniform4fv(GLint location, GLsizei count, const GLfloat *value);
29 void glVertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid * pointer);
30 void glBufferData(GLenum target, GLsizeiptr size, const GLvoid * data, GLenum usage);
31 void glUniform4f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
32 GLint glGetUniformLocation(GLuint program, const GLchar *name);
33 void glGetShaderInfoLog(GLuint shader, GLsizei maxLength, GLsizei *length, GLchar *infoLog);
34 void glGetShaderiv(GLuint shader, GLenum pname, GLint *params);
35 GLuint glCreateShader(GLenum shaderType);
36 void glCompileShader(GLuint shader);
37 //void glShaderSource(GLuint shader, GLsizei count,/* const dropped for pas2c compat */ GLchar **string, const GLint *length);
38 void glShaderSource(GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length);
39 #endif