gl.h (2492B)
1 2 #ifndef LNVIS_GL_H 3 #define LNVIS_GL_H 4 5 #if defined(__APPLE__) 6 #include <OpenGL/gl.h> 7 #else 8 #include <GL/gl.h> 9 10 void glUniform2fv(GLint location, GLsizei count, const GLfloat *value); 11 12 void glStencilOpSeparate(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); 13 14 void glUniform4fv(GLint location, GLsizei count, const GLfloat *value); 15 16 GLuint glGetUniformBlockIndex(GLuint program, const GLchar *uniformBlockName); 17 18 void glBlendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); 19 void glGetShaderInfoLog(GLuint shader, GLsizei maxLength, GLsizei *length, GLchar *infoLog); 20 void glGetProgramInfoLog(GLuint program, GLsizei maxLength, GLsizei *length, GLchar *infoLog); 21 22 void glGenBuffers(GLsizei n, GLuint * buffers); 23 void glGetShaderiv(GLuint shader, GLenum pname, GLint *params); 24 void glGetShaderInfoLog(GLuint shader, GLsizei maxLength, GLsizei *length, GLchar *infoLog); 25 void glBindBuffer(GLenum target, GLuint buffer); 26 GLuint glCreateShader(GLenum shaderType); 27 void glCompileShader(GLuint shader); 28 29 30 void glBindAttribLocation(GLuint program, GLuint index, const GLchar *name); 31 32 33 void glShaderSource(GLuint shader, GLsizei count, const GLchar **string, 34 const GLint *length); 35 36 void glBufferData(GLenum target, GLsizeiptr size, const GLvoid * data, GLenum usage); 37 GLint glGetUniformLocation(GLuint program, const GLchar *name); 38 GLint glGetAttribLocation(GLuint program, const GLchar *name); 39 void glEnableVertexAttribArray(GLuint index); 40 void glDeleteShader(GLuint shader); 41 42 void glDeleteBuffers(GLsizei n, const GLuint * buffers); 43 44 void glVertexAttribPointer(GLuint index, GLint size, GLenum type, 45 GLboolean normalized, GLsizei stride, 46 const GLvoid * pointer); 47 48 void glUniform1i(GLint location, GLint i); 49 void glUniform3f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2); 50 GLuint glCreateProgram(void); 51 void glAttachShader(GLuint program, GLuint shader); 52 void glLinkProgram(GLuint program); 53 54 void glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, 55 const GLfloat *value); 56 57 void glUseProgram(GLuint program); 58 void glUniform1f(GLint location, GLfloat v0); 59 void glGetProgramiv(GLuint program, GLenum pname, GLint *params); 60 void glDeleteProgram( GLuint program); 61 62 void glDisableVertexAttribArray(GLuint index); 63 void glDeleteVertexArrays(GLsizei n, const GLuint *arrays); 64 65 GLboolean glIsBuffer( GLuint buffer); 66 67 #endif 68 69 70 #endif /* LNVIS_GL_H */