fixed bugs

git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@372 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
ikits 2005-01-21 00:53:03 +00:00
parent 6128bd95e1
commit 3d99fe75fd

View File

@ -1,8 +1,49 @@
GL_VERSION_2_0
http://www.opengl.org/documentation/specs/version2.0/glspec20.pdf
GL_SHADING_LANGUAGE_VERSION 0x8B8C
GL_PROGRAM_OBJECT 0x8B40
GL_SHADER_OBJECT 0x8B48
GL_BLEND_EQUATION_RGB GL_BLEND_EQUATION
GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622
GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623
GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624
GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625
GL_CURRENT_VERTEX_ATTRIB 0x8626
GL_VERTEX_PROGRAM_POINT_SIZE 0x8642
GL_VERTEX_PROGRAM_TWO_SIDE 0x8643
GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645
GL_STENCIL_BACK_FUNC 0x8800
GL_STENCIL_BACK_FAIL 0x8801
GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802
GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803
GL_MAX_DRAW_BUFFERS 0x8824
GL_DRAW_BUFFER0 0x8825
GL_DRAW_BUFFER1 0x8826
GL_DRAW_BUFFER2 0x8827
GL_DRAW_BUFFER3 0x8828
GL_DRAW_BUFFER4 0x8829
GL_DRAW_BUFFER5 0x882A
GL_DRAW_BUFFER6 0x882B
GL_DRAW_BUFFER7 0x882C
GL_DRAW_BUFFER8 0x882D
GL_DRAW_BUFFER9 0x882E
GL_DRAW_BUFFER10 0x882F
GL_DRAW_BUFFER11 0x8830
GL_DRAW_BUFFER12 0x8831
GL_DRAW_BUFFER13 0x8832
GL_DRAW_BUFFER14 0x8833
GL_DRAW_BUFFER15 0x8834
GL_BLEND_EQUATION_ALPHA 0x883D
GL_POINT_SPRITE 0x8861
GL_COORD_REPLACE 0x8862
GL_MAX_VERTEX_ATTRIBS 0x8869
GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
GL_MAX_TEXTURE_COORDS 0x8871
GL_MAX_TEXTURE_IMAGE_UNITS 0x8872
GL_FRAGMENT_SHADER 0x8B30
GL_VERTEX_SHADER 0x8B31
GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49
GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A
GL_MAX_VARYING_FLOATS 0x8B4B
GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
GL_SHADER_TYPE 0x8B4E
GL_FLOAT_VEC2 0x8B50
GL_FLOAT_VEC3 0x8B51
@ -23,89 +64,63 @@ http://www.opengl.org/documentation/specs/version2.0/glspec20.pdf
GL_SAMPLER_CUBE 0x8B60
GL_SAMPLER_1D_SHADOW 0x8B61
GL_SAMPLER_2D_SHADOW 0x8B62
GL_SAMPLER_2D_RECT 0x8B63
GL_SAMPLER_2D_RECT_SHADOW 0x8B64
GL_DELETE_STATUS 0x8B80
GL_COMPILE_STATUS 0x8B81
GL_LINK_STATUS 0x8B82
GL_VALIDATE_STATUS 0x8B83
GL_INFO_LOG_LENGTH 0x8B84
GL_ATTACHED_OBJECTS 0x8B85
GL_ATTACHED_SHADERS 0x8B85
GL_ACTIVE_UNIFORMS 0x8B86
GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87
GL_SHADER_SOURCE_LENGTH 0x8B88
GL_ACTIVE_ATTRIBUTES 0x8B89
GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A
GL_VERTEX_SHADER 0x8B31
GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A
GL_MAX_VARYING_FLOATS 0x8B4B
GL_MAX_VERTEX_ATTRIBS 0x8869
GL_MAX_TEXTURE_IMAGE_UNITS 0x8872
GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
GL_MAX_TEXTURE_COORDS 0x8871
GL_VERTEX_PROGRAM_POINT_SIZE 0x8642
GL_VERTEX_PROGRAM_TWO_SIDE 0x8643
GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622
GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623
GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624
GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625
GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
GL_CURRENT_VERTEX_ATTRIB 0x8626
GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645
GL_FRAGMENT_SHADER 0x8B30
GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49
GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B
GL_MAX_DRAW_BUFFERS 0x8824
GL_DRAW_BUFFER0 0x8825
GL_DRAW_BUFFER1 0x8826
GL_DRAW_BUFFER2 0x8827
GL_DRAW_BUFFER3 0x8828
GL_DRAW_BUFFER4 0x8829
GL_DRAW_BUFFER5 0x882A
GL_DRAW_BUFFER6 0x882B
GL_DRAW_BUFFER7 0x882C
GL_DRAW_BUFFER8 0x882D
GL_DRAW_BUFFER9 0x882E
GL_DRAW_BUFFER10 0x882F
GL_DRAW_BUFFER11 0x8830
GL_DRAW_BUFFER12 0x8831
GL_DRAW_BUFFER13 0x8832
GL_DRAW_BUFFER14 0x8833
GL_DRAW_BUFFER15 0x8834
GL_POINT_SPRITE 0x8861
GL_COORD_REPLACE 0x8862
GL_POINT_SPRITE_COORD_ORIGIN 0x0000
GL_STENCIL_BACK_FUNC 0x8800
GL_STENCIL_BACK_FAIL 0x8801
GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802
GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803
GL_STENCIL_BACK_REF 0x0000
GL_STENCIL_BACK_VALUE_MASK 0x0000
GL_STENCIL_TEST_TWO_SIDE 0x8910
GL_ACTIVE_STENCIL_FACE 0x8911
GL_SHADING_LANGUAGE_VERSION 0x8B8C
GL_CURRENT_PROGRAM 0x8B8D
GL_POINT_SPRITE_COORD_ORIGIN 0x8CA0
GL_LOWER_LEFT 0x8CA1
GL_UPPER_LEFT 0x8CA2
GL_STENCIL_BACK_REF 0x8CA3
GL_STENCIL_BACK_VALUE_MASK 0x8CA4
GL_STENCIL_BACK_WRITEMASK 0x8CA5
typedef char GLchar
GLuint glCreateShader (GLenum type)
void glShaderSource (GLuint shader, GLsizei count, const GLchar** strings, const GLint* lengths)
GLboolean glIsShader (GLuint shader)
void glCompileShader (GLuint shader)
void glDeleteShader (GLuint shader)
GLuint glCreateProgram (void)
GLboolean glIsProgram (GLuint program)
void glBlendEquationSeparate (GLenum, GLenum)
void glDrawBuffers (GLsizei n, const GLenum* bufs)
void glStencilOpSeparate (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass)
void glStencilFuncSeparate (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask)
void glStencilMaskSeparate (GLenum, GLuint)
void glAttachShader (GLuint program, GLuint shader)
void glDetachShader (GLuint program, GLuint shader)
void glLinkProgram (GLuint program)
void glUseProgram (GLuint program)
void glValidateProgram (GLuint program)
void glBindAttribLocation (GLuint program, GLuint index, const GLchar* name)
void glCompileShader (GLuint shader)
GLuint glCreateProgram (void)
GLuint glCreateShader (GLenum type)
void glDeleteProgram (GLuint program)
void glGetProgramiv(GLuint program, GLenum pname, GLint* param)
void glGetProgramfv(GLuint program, GLenum pname, GLfloat* param)
void glGetShaderiv(GLuint shader, GLenum pname, GLint* param)
void glGetShaderfv(GLuint shader, GLenum pname, GLfloat* param)
void glGetShaderInfoLog(GLuint shader, GLsizei bufSize, GLsizei* length, GLchar* infoLog)
void glGetProgramInfoLog(GLuint program, GLsizei bufSize, GLsizei* length, GLchar* infoLog)
void glDeleteShader (GLuint shader)
void glDetachShader (GLuint program, GLuint shader)
void glDisableVertexAttribArray (GLuint)
void glEnableVertexAttribArray (GLuint)
void glGetActiveAttrib (GLuint program, GLuint index, GLsizei maxLength, GLsizei* length, GLint* size, GLenum* type, GLchar* name)
void glGetActiveUniform (GLuint program, GLuint index, GLsizei maxLength, GLsizei* length, GLint* size, GLenum* type, GLchar* name)
void glGetAttachedShaders (GLuint program, GLsizei maxCount, GLsizei* count, GLuint* shaders)
GLint glGetAttribLocation (GLuint program, const GLchar* name)
void glGetProgramiv(GLuint program, GLenum pname, GLint* param)
void glGetProgramInfoLog(GLuint program, GLsizei bufSize, GLsizei* length, GLchar* infoLog)
void glGetShaderiv(GLuint shader, GLenum pname, GLint* param)
void glGetShaderInfoLog(GLuint shader, GLsizei bufSize, GLsizei* length, GLchar* infoLog)
void glShaderSource (GLuint shader, GLsizei count, const GLchar** strings, const GLint* lengths)
GLint glGetUniformLocation (GLint programObj, const GLchar* name)
void glGetUniformfv (GLuint program, GLint location, GLfloat* params)
void glGetUniformiv (GLuint program, GLint location, GLint* params)
void glGetVertexAttribdv (GLuint, GLenum, GLdouble*)
void glGetVertexAttribfv (GLuint, GLenum, GLfloat*)
void glGetVertexAttribiv (GLuint, GLenum, GLint*)
void glGetVertexAttribPointerv (GLuint, GLenum, GLvoid*)
GLboolean glIsProgram (GLuint program)
GLboolean glIsShader (GLuint shader)
void glLinkProgram (GLuint program)
void glGetShaderSource (GLint obj, GLsizei maxLength, GLsizei* length, GLchar* source)
void glUseProgram (GLuint program)
void glUniform1f (GLint location, GLfloat v0)
void glUniform1fv (GLint location, GLsizei count, const GLfloat* value)
void glUniform1i (GLint location, GLint v0)
@ -125,10 +140,7 @@ http://www.opengl.org/documentation/specs/version2.0/glspec20.pdf
void glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
void glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
void glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
GLint glGetUniformLocation (GLint programObj, const GLchar* name)
void glGetActiveUniform (GLuint program, GLuint index, GLsizei maxLength, GLsizei* length, GLint* size, GLenum* type, GLchar* name)
void glGetUniformfv (GLuint program, GLint location, GLfloat* params)
void glGetUniformiv (GLuint program, GLint location, GLint* params)
void glValidateProgram (GLuint program)
void glVertexAttrib1d (GLuint index, GLdouble x)
void glVertexAttrib1dv (GLuint index, const GLdouble* v)
void glVertexAttrib1f (GLuint index, GLfloat x)
@ -166,11 +178,3 @@ http://www.opengl.org/documentation/specs/version2.0/glspec20.pdf
void glVertexAttrib4uiv (GLuint index, const GLuint* v)
void glVertexAttrib4usv (GLuint index, const GLushort* v)
void glVertexAttribPointer (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid* pointer)
void glBindAttribLocation (GLuint program, GLuint index, const GLchar* name)
GLint glGetAttribLocation (GLuint program, const GLchar* name)
void glGetActiveAttrib (GLuint program, GLuint index, GLsizei maxLength, GLsizei* length, GLint* size, GLenum* type, GLchar* name)
GLuint glGetHandle (GLenum pname)
void glDrawBuffers (GLsizei n, const GLenum* bufs)
void glStencilFuncSeparate (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask)
void glStencilOpSeparate (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass)
void glActiveStencilFace (GLenum face)