PageRenderTime 96ms CodeModel.GetById 2ms app.highlight 86ms RepoModel.GetById 1ms app.codeStats 0ms

/kivy/graphics/c_opengl_debug.pyx

https://bitbucket.org/kpozn/kivy
Cython | 702 lines | 683 code | 3 blank | 16 comment | 135 complexity | d279ff9899232c6af4596920c39c2330 MD5 | raw file
  1
  2# This file was automatically generated with kivy/tools/stub-gl-debug.py
  3include "common.pxi"
  4cimport kivy.graphics.c_opengl as cgl
  5
  6
  7cdef void   glActiveTexture (GLenum texture) with gil:
  8    print "GL glActiveTexture( texture = ", texture, ", )"
  9    cgl.glActiveTexture ( texture)
 10    ret = cgl.glGetError()
 11    if ret: print "OpenGL Error %d / %x" % (ret, ret)
 12cdef void   glAttachShader (GLuint program, GLuint shader) with gil:
 13    print "GL glAttachShader( program = ", program, ", shader = ", shader, ", )"
 14    cgl.glAttachShader ( program, shader)
 15    ret = cgl.glGetError()
 16    if ret: print "OpenGL Error %d / %x" % (ret, ret)
 17cdef void   glBindAttribLocation (GLuint program, GLuint index,  GLchar* name) with gil:
 18    print "GL glBindAttribLocation( program = ", program, ", index = ", index, ", name*=", repr(hex(<long> name)), ", )"
 19    cgl.glBindAttribLocation ( program, index, name)
 20    ret = cgl.glGetError()
 21    if ret: print "OpenGL Error %d / %x" % (ret, ret)
 22cdef void   glBindBuffer (GLenum target, GLuint buffer) with gil:
 23    print "GL glBindBuffer( target = ", target, ", buffer = ", buffer, ", )"
 24    cgl.glBindBuffer ( target, buffer)
 25    ret = cgl.glGetError()
 26    if ret: print "OpenGL Error %d / %x" % (ret, ret)
 27cdef void   glBindFramebuffer (GLenum target, GLuint framebuffer) with gil:
 28    print "GL glBindFramebuffer( target = ", target, ", framebuffer = ", framebuffer, ", )"
 29    cgl.glBindFramebuffer ( target, framebuffer)
 30    ret = cgl.glGetError()
 31    if ret: print "OpenGL Error %d / %x" % (ret, ret)
 32cdef void   glBindRenderbuffer (GLenum target, GLuint renderbuffer) with gil:
 33    print "GL glBindRenderbuffer( target = ", target, ", renderbuffer = ", renderbuffer, ", )"
 34    cgl.glBindRenderbuffer ( target, renderbuffer)
 35    ret = cgl.glGetError()
 36    if ret: print "OpenGL Error %d / %x" % (ret, ret)
 37cdef void   glBindTexture (GLenum target, GLuint texture) with gil:
 38    print "GL glBindTexture( target = ", target, ", texture = ", texture, ", )"
 39    cgl.glBindTexture ( target, texture)
 40    ret = cgl.glGetError()
 41    if ret: print "OpenGL Error %d / %x" % (ret, ret)
 42cdef void   glBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) with gil:
 43    print "GL glBlendColor( red = ", red, ", green = ", green, ", blue = ", blue, ", alpha = ", alpha, ", )"
 44    cgl.glBlendColor ( red, green, blue, alpha)
 45    ret = cgl.glGetError()
 46    if ret: print "OpenGL Error %d / %x" % (ret, ret)
 47cdef void   glBlendEquation (GLenum mode) with gil:
 48    print "GL glBlendEquation( mode = ", mode, ", )"
 49    cgl.glBlendEquation ( mode)
 50    ret = cgl.glGetError()
 51    if ret: print "OpenGL Error %d / %x" % (ret, ret)
 52cdef void   glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha) with gil:
 53    print "GL glBlendEquationSeparate( modeRGB = ", modeRGB, ", modeAlpha = ", modeAlpha, ", )"
 54    cgl.glBlendEquationSeparate ( modeRGB, modeAlpha)
 55    ret = cgl.glGetError()
 56    if ret: print "OpenGL Error %d / %x" % (ret, ret)
 57cdef void   glBlendFunc (GLenum sfactor, GLenum dfactor) with gil:
 58    print "GL glBlendFunc( sfactor = ", sfactor, ", dfactor = ", dfactor, ", )"
 59    cgl.glBlendFunc ( sfactor, dfactor)
 60    ret = cgl.glGetError()
 61    if ret: print "OpenGL Error %d / %x" % (ret, ret)
 62cdef void   glBlendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) with gil:
 63    print "GL glBlendFuncSeparate( srcRGB = ", srcRGB, ", dstRGB = ", dstRGB, ", srcAlpha = ", srcAlpha, ", dstAlpha = ", dstAlpha, ", )"
 64    cgl.glBlendFuncSeparate ( srcRGB, dstRGB, srcAlpha, dstAlpha)
 65    ret = cgl.glGetError()
 66    if ret: print "OpenGL Error %d / %x" % (ret, ret)
 67cdef void   glBufferData (GLenum target, GLsizeiptr size,  GLvoid* data, GLenum usage) with gil:
 68    print "GL glBufferData( target = ", target, ", size = ", size, ", data*=", repr(hex(<long> data)), ", usage = ", usage, ", )"
 69    cgl.glBufferData ( target, size, data, usage)
 70    ret = cgl.glGetError()
 71    if ret: print "OpenGL Error %d / %x" % (ret, ret)
 72cdef void   glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size,  GLvoid* data) with gil:
 73    print "GL glBufferSubData( target = ", target, ", offset = ", offset, ", size = ", size, ", data*=", repr(hex(<long> data)), ", )"
 74    cgl.glBufferSubData ( target, offset, size, data)
 75    ret = cgl.glGetError()
 76    if ret: print "OpenGL Error %d / %x" % (ret, ret)
 77cdef GLenum glCheckFramebufferStatus (GLenum target) with gil:
 78    print "GL glCheckFramebufferStatus( target = ", target, ", )"
 79    ret = cgl.glGetError()
 80    if ret: print "OpenGL Error %d / %x" % (ret, ret)
 81    return cgl.glCheckFramebufferStatus ( target)
 82cdef void   glClear (GLbitfield mask) with gil:
 83    print "GL glClear( mask = ", mask, ", )"
 84    cgl.glClear ( mask)
 85    ret = cgl.glGetError()
 86    if ret: print "OpenGL Error %d / %x" % (ret, ret)
 87cdef void   glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) with gil:
 88    print "GL glClearColor( red = ", red, ", green = ", green, ", blue = ", blue, ", alpha = ", alpha, ", )"
 89    cgl.glClearColor ( red, green, blue, alpha)
 90    ret = cgl.glGetError()
 91    if ret: print "OpenGL Error %d / %x" % (ret, ret)
 92#crash on android platform
 93#cdef void   glClearDepthf (GLclampf depth) with gil:
 94#    print "GL glClearDepthf( depth = ", depth, ", )"
 95#    cgl.glClearDepthf ( depth)
 96#    ret = cgl.glGetError()
 97#    if ret: print "OpenGL Error %d / %x" % (ret, ret)
 98cdef void   glClearStencil (GLint s) with gil:
 99    print "GL glClearStencil( s = ", s, ", )"
100    cgl.glClearStencil ( s)
101    ret = cgl.glGetError()
102    if ret: print "OpenGL Error %d / %x" % (ret, ret)
103cdef void   glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) with gil:
104    print "GL glColorMask( red = ", red, ", green = ", green, ", blue = ", blue, ", alpha = ", alpha, ", )"
105    cgl.glColorMask ( red, green, blue, alpha)
106    ret = cgl.glGetError()
107    if ret: print "OpenGL Error %d / %x" % (ret, ret)
108cdef void   glCompileShader (GLuint shader) with gil:
109    print "GL glCompileShader( shader = ", shader, ", )"
110    cgl.glCompileShader ( shader)
111    ret = cgl.glGetError()
112    if ret: print "OpenGL Error %d / %x" % (ret, ret)
113cdef void   glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize,  GLvoid* data) with gil:
114    print "GL glCompressedTexImage2D( target = ", target, ", level = ", level, ", internalformat = ", internalformat, ", width = ", width, ", height = ", height, ", border = ", border, ", imageSize = ", imageSize, ", data*=", repr(hex(<long> data)), ", )"
115    cgl.glCompressedTexImage2D ( target, level, internalformat, width, height, border, imageSize, data)
116    ret = cgl.glGetError()
117    if ret: print "OpenGL Error %d / %x" % (ret, ret)
118cdef void   glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize,  GLvoid* data) with gil:
119    print "GL glCompressedTexSubImage2D( target = ", target, ", level = ", level, ", xoffset = ", xoffset, ", yoffset = ", yoffset, ", width = ", width, ", height = ", height, ", format = ", format, ", imageSize = ", imageSize, ", data*=", repr(hex(<long> data)), ", )"
120    cgl.glCompressedTexSubImage2D ( target, level, xoffset, yoffset, width, height, format, imageSize, data)
121    ret = cgl.glGetError()
122    if ret: print "OpenGL Error %d / %x" % (ret, ret)
123cdef void   glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) with gil:
124    print "GL glCopyTexImage2D( target = ", target, ", level = ", level, ", internalformat = ", internalformat, ", x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", border = ", border, ", )"
125    cgl.glCopyTexImage2D ( target, level, internalformat, x, y, width, height, border)
126    ret = cgl.glGetError()
127    if ret: print "OpenGL Error %d / %x" % (ret, ret)
128cdef void   glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) with gil:
129    print "GL glCopyTexSubImage2D( target = ", target, ", level = ", level, ", xoffset = ", xoffset, ", yoffset = ", yoffset, ", x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", )"
130    cgl.glCopyTexSubImage2D ( target, level, xoffset, yoffset, x, y, width, height)
131    ret = cgl.glGetError()
132    if ret: print "OpenGL Error %d / %x" % (ret, ret)
133cdef GLuint glCreateProgram () with gil:
134    print "GL glCreateProgram( )"
135    ret = cgl.glGetError()
136    if ret: print "OpenGL Error %d / %x" % (ret, ret)
137    return cgl.glCreateProgram ()
138cdef GLuint glCreateShader (GLenum type) with gil:
139    print "GL glCreateShader( type = ", type, ", )"
140    ret = cgl.glGetError()
141    if ret: print "OpenGL Error %d / %x" % (ret, ret)
142    return cgl.glCreateShader ( type)
143cdef void   glCullFace (GLenum mode) with gil:
144    print "GL glCullFace( mode = ", mode, ", )"
145    cgl.glCullFace ( mode)
146    ret = cgl.glGetError()
147    if ret: print "OpenGL Error %d / %x" % (ret, ret)
148cdef void   glDeleteBuffers (GLsizei n,  GLuint* buffers) with gil:
149    print "GL glDeleteBuffers( n = ", n, ", buffers*=", repr(hex(<long> buffers)), ", )"
150    cgl.glDeleteBuffers ( n, buffers)
151    ret = cgl.glGetError()
152    if ret: print "OpenGL Error %d / %x" % (ret, ret)
153cdef void   glDeleteFramebuffers (GLsizei n,  GLuint* framebuffers) with gil:
154    print "GL glDeleteFramebuffers( n = ", n, ", framebuffers*=", repr(hex(<long> framebuffers)), ", )"
155    cgl.glDeleteFramebuffers ( n, framebuffers)
156    ret = cgl.glGetError()
157    if ret: print "OpenGL Error %d / %x" % (ret, ret)
158cdef void   glDeleteProgram (GLuint program) with gil:
159    print "GL glDeleteProgram( program = ", program, ", )"
160    cgl.glDeleteProgram ( program)
161    ret = cgl.glGetError()
162    if ret: print "OpenGL Error %d / %x" % (ret, ret)
163cdef void   glDeleteRenderbuffers (GLsizei n,  GLuint* renderbuffers) with gil:
164    print "GL glDeleteRenderbuffers( n = ", n, ", renderbuffers*=", repr(hex(<long> renderbuffers)), ", )"
165    cgl.glDeleteRenderbuffers ( n, renderbuffers)
166    ret = cgl.glGetError()
167    if ret: print "OpenGL Error %d / %x" % (ret, ret)
168cdef void   glDeleteShader (GLuint shader) with gil:
169    print "GL glDeleteShader( shader = ", shader, ", )"
170    cgl.glDeleteShader ( shader)
171    ret = cgl.glGetError()
172    if ret: print "OpenGL Error %d / %x" % (ret, ret)
173cdef void   glDeleteTextures (GLsizei n,  GLuint* textures) with gil:
174    print "GL glDeleteTextures( n = ", n, ", textures*=", repr(hex(<long> textures)), ", )"
175    cgl.glDeleteTextures ( n, textures)
176    ret = cgl.glGetError()
177    if ret: print "OpenGL Error %d / %x" % (ret, ret)
178cdef void   glDepthFunc (GLenum func) with gil:
179    print "GL glDepthFunc( func = ", func, ", )"
180    cgl.glDepthFunc ( func)
181    ret = cgl.glGetError()
182    if ret: print "OpenGL Error %d / %x" % (ret, ret)
183cdef void   glDepthMask (GLboolean flag) with gil:
184    print "GL glDepthMask( flag = ", flag, ", )"
185    cgl.glDepthMask ( flag)
186    ret = cgl.glGetError()
187    if ret: print "OpenGL Error %d / %x" % (ret, ret)
188#crash on android platform
189#cdef void   glDepthRangef (GLclampf zNear, GLclampf zFar) with gil:
190#    print "GL glDepthRangef( zNear = ", zNear, ", zFar = ", zFar, ", )"
191#    cgl.glDepthRangef ( zNear, zFar)
192#    ret = glGetError()
193#    if ret: print "ERR %d / %x" % (ret, ret)
194cdef void   glDetachShader (GLuint program, GLuint shader) with gil:
195    print "GL glDetachShader( program = ", program, ", shader = ", shader, ", )"
196    cgl.glDetachShader ( program, shader)
197    ret = cgl.glGetError()
198    if ret: print "OpenGL Error %d / %x" % (ret, ret)
199cdef void   glDisable (GLenum cap) with gil:
200    print "GL glDisable( cap = ", cap, ", )"
201    cgl.glDisable ( cap)
202    ret = cgl.glGetError()
203    if ret: print "OpenGL Error %d / %x" % (ret, ret)
204cdef void   glDisableVertexAttribArray (GLuint index) with gil:
205    print "GL glDisableVertexAttribArray( index = ", index, ", )"
206    cgl.glDisableVertexAttribArray ( index)
207    ret = cgl.glGetError()
208    if ret: print "OpenGL Error %d / %x" % (ret, ret)
209cdef void   glDrawArrays (GLenum mode, GLint first, GLsizei count) with gil:
210    print "GL glDrawArrays( mode = ", mode, ", first = ", first, ", count = ", count, ", )"
211    cgl.glDrawArrays ( mode, first, count)
212    ret = cgl.glGetError()
213    if ret: print "OpenGL Error %d / %x" % (ret, ret)
214cdef void   glDrawElements (GLenum mode, GLsizei count, GLenum type,  GLvoid* indices) with gil:
215    print "GL glDrawElements( mode = ", mode, ", count = ", count, ", type = ", type, ", indices*=", repr(hex(<long> indices)), ", )"
216    cgl.glDrawElements ( mode, count, type, indices)
217    ret = cgl.glGetError()
218    if ret: print "OpenGL Error %d / %x" % (ret, ret)
219cdef void   glEnable (GLenum cap) with gil:
220    print "GL glEnable( cap = ", cap, ", )"
221    cgl.glEnable ( cap)
222    ret = cgl.glGetError()
223    if ret: print "OpenGL Error %d / %x" % (ret, ret)
224cdef void   glEnableVertexAttribArray (GLuint index) with gil:
225    print "GL glEnableVertexAttribArray( index = ", index, ", )"
226    cgl.glEnableVertexAttribArray ( index)
227    ret = cgl.glGetError()
228    if ret: print "OpenGL Error %d / %x" % (ret, ret)
229cdef void   glFinish () with gil:
230    print "GL glFinish( )"
231    cgl.glFinish ()
232    ret = cgl.glGetError()
233    if ret: print "OpenGL Error %d / %x" % (ret, ret)
234cdef void   glFlush () with gil:
235    print "GL glFlush( )"
236    cgl.glFlush ()
237    ret = cgl.glGetError()
238    if ret: print "OpenGL Error %d / %x" % (ret, ret)
239cdef void   glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) with gil:
240    print "GL glFramebufferRenderbuffer( target = ", target, ", attachment = ", attachment, ", renderbuffertarget = ", renderbuffertarget, ", renderbuffer = ", renderbuffer, ", )"
241    cgl.glFramebufferRenderbuffer ( target, attachment, renderbuffertarget, renderbuffer)
242    ret = cgl.glGetError()
243    if ret: print "OpenGL Error %d / %x" % (ret, ret)
244cdef void   glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) with gil:
245    print "GL glFramebufferTexture2D( target = ", target, ", attachment = ", attachment, ", textarget = ", textarget, ", texture = ", texture, ", level = ", level, ", )"
246    cgl.glFramebufferTexture2D ( target, attachment, textarget, texture, level)
247    ret = cgl.glGetError()
248    if ret: print "OpenGL Error %d / %x" % (ret, ret)
249cdef void   glFrontFace (GLenum mode) with gil:
250    print "GL glFrontFace( mode = ", mode, ", )"
251    cgl.glFrontFace ( mode)
252    ret = cgl.glGetError()
253    if ret: print "OpenGL Error %d / %x" % (ret, ret)
254cdef void   glGenBuffers (GLsizei n, GLuint* buffers) with gil:
255    print "GL glGenBuffers( n = ", n, ", buffers*=", repr(hex(<long> buffers)), ", )"
256    cgl.glGenBuffers ( n, buffers)
257    ret = cgl.glGetError()
258    if ret: print "OpenGL Error %d / %x" % (ret, ret)
259cdef void   glGenerateMipmap (GLenum target) with gil:
260    print "GL glGenerateMipmap( target = ", target, ", )"
261    cgl.glGenerateMipmap ( target)
262    ret = cgl.glGetError()
263    if ret: print "OpenGL Error %d / %x" % (ret, ret)
264cdef void   glGenFramebuffers (GLsizei n, GLuint* framebuffers) with gil:
265    print "GL glGenFramebuffers( n = ", n, ", framebuffers*=", repr(hex(<long> framebuffers)), ", )"
266    cgl.glGenFramebuffers ( n, framebuffers)
267    ret = cgl.glGetError()
268    if ret: print "OpenGL Error %d / %x" % (ret, ret)
269cdef void   glGenRenderbuffers (GLsizei n, GLuint* renderbuffers) with gil:
270    print "GL glGenRenderbuffers( n = ", n, ", renderbuffers*=", repr(hex(<long> renderbuffers)), ", )"
271    cgl.glGenRenderbuffers ( n, renderbuffers)
272    ret = cgl.glGetError()
273    if ret: print "OpenGL Error %d / %x" % (ret, ret)
274cdef void   glGenTextures (GLsizei n, GLuint* textures) with gil:
275    print "GL glGenTextures( n = ", n, ", textures*=", repr(hex(<long> textures)), ", )"
276    cgl.glGenTextures ( n, textures)
277    ret = cgl.glGetError()
278    if ret: print "OpenGL Error %d / %x" % (ret, ret)
279cdef void   glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) with gil:
280    print "GL glGetActiveAttrib( program = ", program, ", index = ", index, ", bufsize = ", bufsize, ", length*=", repr(hex(<long> length)), ", size*=", repr(hex(<long> size)), ", type*=", repr(hex(<long> type)), ", name*=", repr(hex(<long> name)), ", )"
281    cgl.glGetActiveAttrib ( program, index, bufsize, length, size, type, name)
282    ret = cgl.glGetError()
283    if ret: print "OpenGL Error %d / %x" % (ret, ret)
284cdef void   glGetActiveUniform (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) with gil:
285    print "GL glGetActiveUniform( program = ", program, ", index = ", index, ", bufsize = ", bufsize, ", length*=", repr(hex(<long> length)), ", size*=", repr(hex(<long> size)), ", type*=", repr(hex(<long> type)), ", name*=", repr(hex(<long> name)), ", )"
286    cgl.glGetActiveUniform ( program, index, bufsize, length, size, type, name)
287    ret = cgl.glGetError()
288    if ret: print "OpenGL Error %d / %x" % (ret, ret)
289cdef void   glGetAttachedShaders (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) with gil:
290    print "GL glGetAttachedShaders( program = ", program, ", maxcount = ", maxcount, ", count*=", repr(hex(<long> count)), ", shaders*=", repr(hex(<long> shaders)), ", )"
291    cgl.glGetAttachedShaders ( program, maxcount, count, shaders)
292    ret = cgl.glGetError()
293    if ret: print "OpenGL Error %d / %x" % (ret, ret)
294cdef int    glGetAttribLocation (GLuint program,  GLchar* name) with gil:
295    print "GL glGetAttribLocation( program = ", program, ", name*=", repr(hex(<long> name)), ", )"
296    ret = cgl.glGetError()
297    if ret: print "OpenGL Error %d / %x" % (ret, ret)
298    return cgl.glGetAttribLocation ( program, name)
299cdef void   glGetBooleanv (GLenum pname, GLboolean* params) with gil:
300    print "GL glGetBooleanv( pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
301    cgl.glGetBooleanv ( pname, params)
302    ret = cgl.glGetError()
303    if ret: print "OpenGL Error %d / %x" % (ret, ret)
304cdef void   glGetBufferParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
305    print "GL glGetBufferParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
306    cgl.glGetBufferParameteriv ( target, pname, params)
307    ret = cgl.glGetError()
308    if ret: print "OpenGL Error %d / %x" % (ret, ret)
309cdef GLenum glGetError () with gil:
310    print "GL glGetError( )"
311    return cgl.glGetError ()
312cdef void   glGetFloatv (GLenum pname, GLfloat* params) with gil:
313    print "GL glGetFloatv( pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
314    cgl.glGetFloatv ( pname, params)
315    ret = cgl.glGetError()
316    if ret: print "OpenGL Error %d / %x" % (ret, ret)
317cdef void   glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint* params) with gil:
318    print "GL glGetFramebufferAttachmentParameteriv( target = ", target, ", attachment = ", attachment, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
319    cgl.glGetFramebufferAttachmentParameteriv ( target, attachment, pname, params)
320    ret = cgl.glGetError()
321    if ret: print "OpenGL Error %d / %x" % (ret, ret)
322cdef void   glGetIntegerv (GLenum pname, GLint* params) with gil:
323    print "GL glGetIntegerv( pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
324    cgl.glGetIntegerv ( pname, params)
325    ret = cgl.glGetError()
326    if ret: print "OpenGL Error %d / %x" % (ret, ret)
327cdef void   glGetProgramiv (GLuint program, GLenum pname, GLint* params) with gil:
328    print "GL glGetProgramiv( program = ", program, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
329    cgl.glGetProgramiv ( program, pname, params)
330    ret = cgl.glGetError()
331    if ret: print "OpenGL Error %d / %x" % (ret, ret)
332cdef void   glGetProgramInfoLog (GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog) with gil:
333    print "GL glGetProgramInfoLog( program = ", program, ", bufsize = ", bufsize, ", length*=", repr(hex(<long> length)), ", infolog*=", repr(hex(<long> infolog)), ", )"
334    cgl.glGetProgramInfoLog ( program, bufsize, length, infolog)
335    ret = cgl.glGetError()
336    if ret: print "OpenGL Error %d / %x" % (ret, ret)
337cdef void   glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
338    print "GL glGetRenderbufferParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
339    cgl.glGetRenderbufferParameteriv ( target, pname, params)
340    ret = cgl.glGetError()
341    if ret: print "OpenGL Error %d / %x" % (ret, ret)
342cdef void   glGetShaderiv (GLuint shader, GLenum pname, GLint* params) with gil:
343    print "GL glGetShaderiv( shader = ", shader, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
344    cgl.glGetShaderiv ( shader, pname, params)
345    ret = cgl.glGetError()
346    if ret: print "OpenGL Error %d / %x" % (ret, ret)
347cdef void   glGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog) with gil:
348    print "GL glGetShaderInfoLog( shader = ", shader, ", bufsize = ", bufsize, ", length*=", repr(hex(<long> length)), ", infolog*=", repr(hex(<long> infolog)), ", )"
349    cgl.glGetShaderInfoLog ( shader, bufsize, length, infolog)
350    ret = cgl.glGetError()
351    if ret: print "OpenGL Error %d / %x" % (ret, ret)
352# Skipping generation of: "#cdef void   glGetShaderPrecisionFormat (cgl.GLenum shadertype, cgl.GLenum precisiontype, cgl.GLint* range, cgl.GLint* precision)"
353cdef void   glGetShaderSource (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source) with gil:
354    print "GL glGetShaderSource( shader = ", shader, ", bufsize = ", bufsize, ", length*=", repr(hex(<long> length)), ", source*=", repr(hex(<long> source)), ", )"
355    cgl.glGetShaderSource ( shader, bufsize, length, source)
356    ret = cgl.glGetError()
357    if ret: print "OpenGL Error %d / %x" % (ret, ret)
358cdef   GLubyte*  glGetString (GLenum name) with gil:
359    print "GL glGetString( name = ", name, ", )"
360    return <GLubyte*><char*>cgl.glGetString ( name)
361cdef void   glGetTexParameterfv (GLenum target, GLenum pname, GLfloat* params) with gil:
362    print "GL glGetTexParameterfv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
363    cgl.glGetTexParameterfv ( target, pname, params)
364    ret = cgl.glGetError()
365    if ret: print "OpenGL Error %d / %x" % (ret, ret)
366cdef void   glGetTexParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
367    print "GL glGetTexParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
368    cgl.glGetTexParameteriv ( target, pname, params)
369    ret = cgl.glGetError()
370    if ret: print "OpenGL Error %d / %x" % (ret, ret)
371cdef void   glGetUniformfv (GLuint program, GLint location, GLfloat* params) with gil:
372    print "GL glGetUniformfv( program = ", program, ", location = ", location, ", params*=", repr(hex(<long> params)), ", )"
373    cgl.glGetUniformfv ( program, location, params)
374    ret = cgl.glGetError()
375    if ret: print "OpenGL Error %d / %x" % (ret, ret)
376cdef void   glGetUniformiv (GLuint program, GLint location, GLint* params) with gil:
377    print "GL glGetUniformiv( program = ", program, ", location = ", location, ", params*=", repr(hex(<long> params)), ", )"
378    cgl.glGetUniformiv ( program, location, params)
379    ret = cgl.glGetError()
380    if ret: print "OpenGL Error %d / %x" % (ret, ret)
381cdef int    glGetUniformLocation (GLuint program,  GLchar* name) with gil:
382    print "GL glGetUniformLocation( program = ", program, ", name*=", repr(hex(<long> name)), ", )"
383    ret = cgl.glGetError()
384    if ret: print "OpenGL Error %d / %x" % (ret, ret)
385    return cgl.glGetUniformLocation ( program, name)
386cdef void   glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat* params) with gil:
387    print "GL glGetVertexAttribfv( index = ", index, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
388    cgl.glGetVertexAttribfv ( index, pname, params)
389    ret = cgl.glGetError()
390    if ret: print "OpenGL Error %d / %x" % (ret, ret)
391cdef void   glGetVertexAttribiv (GLuint index, GLenum pname, GLint* params) with gil:
392    print "GL glGetVertexAttribiv( index = ", index, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
393    cgl.glGetVertexAttribiv ( index, pname, params)
394    ret = cgl.glGetError()
395    if ret: print "OpenGL Error %d / %x" % (ret, ret)
396cdef void   glGetVertexAttribPointerv (GLuint index, GLenum pname, GLvoid** pointer) with gil:
397    print "GL glGetVertexAttribPointerv( index = ", index, ", pname = ", pname, ", pointer**=", repr(hex(<long> pointer)), ", )"
398    cgl.glGetVertexAttribPointerv ( index, pname, pointer)
399    ret = cgl.glGetError()
400    if ret: print "OpenGL Error %d / %x" % (ret, ret)
401cdef void   glHint (GLenum target, GLenum mode) with gil:
402    print "GL glHint( target = ", target, ", mode = ", mode, ", )"
403    cgl.glHint ( target, mode)
404    ret = cgl.glGetError()
405    if ret: print "OpenGL Error %d / %x" % (ret, ret)
406cdef GLboolean  glIsBuffer (GLuint buffer) with gil:
407    print "GL glIsBuffer( buffer = ", buffer, ", )"
408    ret = cgl.glGetError()
409    if ret: print "OpenGL Error %d / %x" % (ret, ret)
410    return cgl.glIsBuffer ( buffer)
411cdef GLboolean  glIsEnabled (GLenum cap) with gil:
412    print "GL glIsEnabled( cap = ", cap, ", )"
413    ret = cgl.glGetError()
414    if ret: print "OpenGL Error %d / %x" % (ret, ret)
415    return cgl.glIsEnabled ( cap)
416cdef GLboolean  glIsFramebuffer (GLuint framebuffer) with gil:
417    print "GL glIsFramebuffer( framebuffer = ", framebuffer, ", )"
418    ret = cgl.glGetError()
419    if ret: print "OpenGL Error %d / %x" % (ret, ret)
420    return cgl.glIsFramebuffer ( framebuffer)
421cdef GLboolean  glIsProgram (GLuint program) with gil:
422    print "GL glIsProgram( program = ", program, ", )"
423    ret = cgl.glGetError()
424    if ret: print "OpenGL Error %d / %x" % (ret, ret)
425    return cgl.glIsProgram ( program)
426cdef GLboolean  glIsRenderbuffer (GLuint renderbuffer) with gil:
427    print "GL glIsRenderbuffer( renderbuffer = ", renderbuffer, ", )"
428    ret = cgl.glGetError()
429    if ret: print "OpenGL Error %d / %x" % (ret, ret)
430    return cgl.glIsRenderbuffer ( renderbuffer)
431cdef GLboolean  glIsShader (GLuint shader) with gil:
432    print "GL glIsShader( shader = ", shader, ", )"
433    ret = cgl.glGetError()
434    if ret: print "OpenGL Error %d / %x" % (ret, ret)
435    return cgl.glIsShader ( shader)
436cdef GLboolean  glIsTexture (GLuint texture) with gil:
437    print "GL glIsTexture( texture = ", texture, ", )"
438    ret = cgl.glGetError()
439    if ret: print "OpenGL Error %d / %x" % (ret, ret)
440    return cgl.glIsTexture ( texture)
441cdef void  glLineWidth (GLfloat width) with gil:
442    print "GL glLineWidth( width = ", width, ", )"
443    cgl.glLineWidth ( width)
444    ret = cgl.glGetError()
445    if ret: print "OpenGL Error %d / %x" % (ret, ret)
446cdef void  glLinkProgram (GLuint program) with gil:
447    print "GL glLinkProgram( program = ", program, ", )"
448    cgl.glLinkProgram ( program)
449    ret = cgl.glGetError()
450    if ret: print "OpenGL Error %d / %x" % (ret, ret)
451cdef void  glPixelStorei (GLenum pname, GLint param) with gil:
452    print "GL glPixelStorei( pname = ", pname, ", param = ", param, ", )"
453    cgl.glPixelStorei ( pname, param)
454    ret = cgl.glGetError()
455    if ret: print "OpenGL Error %d / %x" % (ret, ret)
456cdef void  glPolygonOffset (GLfloat factor, GLfloat units) with gil:
457    print "GL glPolygonOffset( factor = ", factor, ", units = ", units, ", )"
458    cgl.glPolygonOffset ( factor, units)
459    ret = cgl.glGetError()
460    if ret: print "OpenGL Error %d / %x" % (ret, ret)
461cdef void  glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels) with gil:
462    print "GL glReadPixels( x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", format = ", format, ", type = ", type, ", pixels*=", repr(hex(<long> pixels)), ", )"
463    cgl.glReadPixels ( x, y, width, height, format, type, pixels)
464    ret = cgl.glGetError()
465    if ret: print "OpenGL Error %d / %x" % (ret, ret)
466# Skipping generation of: "#cdef void  glReleaseShaderCompiler ()"
467cdef void  glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height) with gil:
468    print "GL glRenderbufferStorage( target = ", target, ", internalformat = ", internalformat, ", width = ", width, ", height = ", height, ", )"
469    cgl.glRenderbufferStorage ( target, internalformat, width, height)
470    ret = cgl.glGetError()
471    if ret: print "OpenGL Error %d / %x" % (ret, ret)
472cdef void  glSampleCoverage (GLclampf value, GLboolean invert) with gil:
473    print "GL glSampleCoverage( value = ", value, ", invert = ", invert, ", )"
474    cgl.glSampleCoverage ( value, invert)
475    ret = cgl.glGetError()
476    if ret: print "OpenGL Error %d / %x" % (ret, ret)
477cdef void  glScissor (GLint x, GLint y, GLsizei width, GLsizei height) with gil:
478    print "GL glScissor( x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", )"
479    cgl.glScissor ( x, y, width, height)
480    ret = cgl.glGetError()
481    if ret: print "OpenGL Error %d / %x" % (ret, ret)
482# Skipping generation of: "#cdef void  glShaderBinary (cgl.GLsizei n,  cgl.GLuint* shaders, cgl.GLenum binaryformat,  cgl.GLvoid* binary, cgl.GLsizei length)"
483cdef void  glShaderSource (GLuint shader, GLsizei count,  GLchar** string,  GLint* length) with gil:
484    print "GL glShaderSource( shader = ", shader, ", count = ", count, ", string**=", repr(hex(<long> string)), ", length*=", repr(hex(<long> length)), ", )"
485    cgl.glShaderSource ( shader, count, <const_char_ptr*>string, length)
486    ret = glGetError()
487    if ret: print "ERR %d / %x" % (ret, ret)
488cdef void  glStencilFunc (GLenum func, GLint ref, GLuint mask) with gil:
489    print "GL glStencilFunc( func = ", func, ", ref = ", ref, ", mask = ", mask, ", )"
490    cgl.glStencilFunc ( func, ref, mask)
491    ret = cgl.glGetError()
492    if ret: print "OpenGL Error %d / %x" % (ret, ret)
493cdef void  glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask) with gil:
494    print "GL glStencilFuncSeparate( face = ", face, ", func = ", func, ", ref = ", ref, ", mask = ", mask, ", )"
495    cgl.glStencilFuncSeparate ( face, func, ref, mask)
496    ret = cgl.glGetError()
497    if ret: print "OpenGL Error %d / %x" % (ret, ret)
498cdef void  glStencilMask (GLuint mask) with gil:
499    print "GL glStencilMask( mask = ", mask, ", )"
500    cgl.glStencilMask ( mask)
501    ret = cgl.glGetError()
502    if ret: print "OpenGL Error %d / %x" % (ret, ret)
503cdef void  glStencilMaskSeparate (GLenum face, GLuint mask) with gil:
504    print "GL glStencilMaskSeparate( face = ", face, ", mask = ", mask, ", )"
505    cgl.glStencilMaskSeparate ( face, mask)
506    ret = cgl.glGetError()
507    if ret: print "OpenGL Error %d / %x" % (ret, ret)
508cdef void  glStencilOp (GLenum fail, GLenum zfail, GLenum zpass) with gil:
509    print "GL glStencilOp( fail = ", fail, ", zfail = ", zfail, ", zpass = ", zpass, ", )"
510    cgl.glStencilOp ( fail, zfail, zpass)
511    ret = cgl.glGetError()
512    if ret: print "OpenGL Error %d / %x" % (ret, ret)
513cdef void  glStencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass) with gil:
514    print "GL glStencilOpSeparate( face = ", face, ", fail = ", fail, ", zfail = ", zfail, ", zpass = ", zpass, ", )"
515    cgl.glStencilOpSeparate ( face, fail, zfail, zpass)
516    ret = cgl.glGetError()
517    if ret: print "OpenGL Error %d / %x" % (ret, ret)
518cdef void  glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type,  GLvoid* pixels) with gil:
519    print "GL glTexImage2D( target = ", target, ", level = ", level, ", internalformat = ", internalformat, ", width = ", width, ", height = ", height, ", border = ", border, ", format = ", format, ", type = ", type, ", pixels*=", repr(hex(<long> pixels)), ", )"
520    cgl.glTexImage2D ( target, level, internalformat, width, height, border, format, type, pixels)
521    ret = cgl.glGetError()
522    if ret: print "OpenGL Error %d / %x" % (ret, ret)
523cdef void  glTexParameterf (GLenum target, GLenum pname, GLfloat param) with gil:
524    print "GL glTexParameterf( target = ", target, ", pname = ", pname, ", param = ", param, ", )"
525    cgl.glTexParameterf ( target, pname, param)
526    ret = cgl.glGetError()
527    if ret: print "OpenGL Error %d / %x" % (ret, ret)
528cdef void  glTexParameterfv (GLenum target, GLenum pname,  GLfloat* params) with gil:
529    print "GL glTexParameterfv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
530    cgl.glTexParameterfv ( target, pname, params)
531    ret = cgl.glGetError()
532    if ret: print "OpenGL Error %d / %x" % (ret, ret)
533cdef void  glTexParameteri (GLenum target, GLenum pname, GLint param) with gil:
534    print "GL glTexParameteri( target = ", target, ", pname = ", pname, ", param = ", param, ", )"
535    cgl.glTexParameteri ( target, pname, param)
536    ret = cgl.glGetError()
537    if ret: print "OpenGL Error %d / %x" % (ret, ret)
538cdef void  glTexParameteriv (GLenum target, GLenum pname,  GLint* params) with gil:
539    print "GL glTexParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
540    cgl.glTexParameteriv ( target, pname, params)
541    ret = cgl.glGetError()
542    if ret: print "OpenGL Error %d / %x" % (ret, ret)
543cdef void  glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type,  GLvoid* pixels) with gil:
544    print "GL glTexSubImage2D( target = ", target, ", level = ", level, ", xoffset = ", xoffset, ", yoffset = ", yoffset, ", width = ", width, ", height = ", height, ", format = ", format, ", type = ", type, ", pixels*=", repr(hex(<long> pixels)), ", )"
545    cgl.glTexSubImage2D ( target, level, xoffset, yoffset, width, height, format, type, pixels)
546    ret = cgl.glGetError()
547    if ret: print "OpenGL Error %d / %x" % (ret, ret)
548cdef void  glUniform1f (GLint location, GLfloat x) with gil:
549    print "GL glUniform1f( location = ", location, ", x = ", x, ", )"
550    cgl.glUniform1f ( location, x)
551    ret = cgl.glGetError()
552    if ret: print "OpenGL Error %d / %x" % (ret, ret)
553cdef void  glUniform1fv (GLint location, GLsizei count,  GLfloat* v) with gil:
554    print "GL glUniform1fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
555    cgl.glUniform1fv ( location, count, v)
556    ret = cgl.glGetError()
557    if ret: print "OpenGL Error %d / %x" % (ret, ret)
558cdef void  glUniform1i (GLint location, GLint x) with gil:
559    print "GL glUniform1i( location = ", location, ", x = ", x, ", )"
560    cgl.glUniform1i ( location, x)
561    ret = cgl.glGetError()
562    if ret: print "OpenGL Error %d / %x" % (ret, ret)
563cdef void  glUniform1iv (GLint location, GLsizei count,  GLint* v) with gil:
564    print "GL glUniform1iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
565    cgl.glUniform1iv ( location, count, v)
566    ret = cgl.glGetError()
567    if ret: print "OpenGL Error %d / %x" % (ret, ret)
568cdef void  glUniform2f (GLint location, GLfloat x, GLfloat y) with gil:
569    print "GL glUniform2f( location = ", location, ", x = ", x, ", y = ", y, ", )"
570    cgl.glUniform2f ( location, x, y)
571    ret = cgl.glGetError()
572    if ret: print "OpenGL Error %d / %x" % (ret, ret)
573cdef void  glUniform2fv (GLint location, GLsizei count,  GLfloat* v) with gil:
574    print "GL glUniform2fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
575    cgl.glUniform2fv ( location, count, v)
576    ret = cgl.glGetError()
577    if ret: print "OpenGL Error %d / %x" % (ret, ret)
578cdef void  glUniform2i (GLint location, GLint x, GLint y) with gil:
579    print "GL glUniform2i( location = ", location, ", x = ", x, ", y = ", y, ", )"
580    cgl.glUniform2i ( location, x, y)
581    ret = cgl.glGetError()
582    if ret: print "OpenGL Error %d / %x" % (ret, ret)
583cdef void  glUniform2iv (GLint location, GLsizei count,  GLint* v) with gil:
584    print "GL glUniform2iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
585    cgl.glUniform2iv ( location, count, v)
586    ret = cgl.glGetError()
587    if ret: print "OpenGL Error %d / %x" % (ret, ret)
588cdef void  glUniform3f (GLint location, GLfloat x, GLfloat y, GLfloat z) with gil:
589    print "GL glUniform3f( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", )"
590    cgl.glUniform3f ( location, x, y, z)
591    ret = cgl.glGetError()
592    if ret: print "OpenGL Error %d / %x" % (ret, ret)
593cdef void  glUniform3fv (GLint location, GLsizei count,  GLfloat* v) with gil:
594    print "GL glUniform3fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
595    cgl.glUniform3fv ( location, count, v)
596    ret = cgl.glGetError()
597    if ret: print "OpenGL Error %d / %x" % (ret, ret)
598cdef void  glUniform3i (GLint location, GLint x, GLint y, GLint z) with gil:
599    print "GL glUniform3i( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", )"
600    cgl.glUniform3i ( location, x, y, z)
601    ret = cgl.glGetError()
602    if ret: print "OpenGL Error %d / %x" % (ret, ret)
603cdef void  glUniform3iv (GLint location, GLsizei count,  GLint* v) with gil:
604    print "GL glUniform3iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
605    cgl.glUniform3iv ( location, count, v)
606    ret = cgl.glGetError()
607    if ret: print "OpenGL Error %d / %x" % (ret, ret)
608cdef void  glUniform4f (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) with gil:
609    print "GL glUniform4f( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", w = ", w, ", )"
610    cgl.glUniform4f ( location, x, y, z, w)
611    ret = cgl.glGetError()
612    if ret: print "OpenGL Error %d / %x" % (ret, ret)
613cdef void  glUniform4fv (GLint location, GLsizei count,  GLfloat* v) with gil:
614    print "GL glUniform4fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
615    cgl.glUniform4fv ( location, count, v)
616    ret = cgl.glGetError()
617    if ret: print "OpenGL Error %d / %x" % (ret, ret)
618cdef void  glUniform4i (GLint location, GLint x, GLint y, GLint z, GLint w) with gil:
619    print "GL glUniform4i( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", w = ", w, ", )"
620    cgl.glUniform4i ( location, x, y, z, w)
621    ret = cgl.glGetError()
622    if ret: print "OpenGL Error %d / %x" % (ret, ret)
623cdef void  glUniform4iv (GLint location, GLsizei count,  GLint* v) with gil:
624    print "GL glUniform4iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
625    cgl.glUniform4iv ( location, count, v)
626    ret = cgl.glGetError()
627    if ret: print "OpenGL Error %d / %x" % (ret, ret)
628cdef void  glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose,  GLfloat* value) with gil:
629    print "GL glUniformMatrix2fv( location = ", location, ", count = ", count, ", transpose = ", transpose, ", value*=", repr(hex(<long> value)), ", )"
630    cgl.glUniformMatrix2fv ( location, count, transpose, value)
631    ret = cgl.glGetError()
632    if ret: print "OpenGL Error %d / %x" % (ret, ret)
633cdef void  glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose,  GLfloat* value) with gil:
634    print "GL glUniformMatrix3fv( location = ", location, ", count = ", count, ", transpose = ", transpose, ", value*=", repr(hex(<long> value)), ", )"
635    cgl.glUniformMatrix3fv ( location, count, transpose, value)
636    ret = cgl.glGetError()
637    if ret: print "OpenGL Error %d / %x" % (ret, ret)
638cdef void  glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose,  GLfloat* value) with gil:
639    print "GL glUniformMatrix4fv( location = ", location, ", count = ", count, ", transpose = ", transpose, ", value*=", repr(hex(<long> value)), ", )"
640    cgl.glUniformMatrix4fv ( location, count, transpose, value)
641    ret = cgl.glGetError()
642    if ret: print "OpenGL Error %d / %x" % (ret, ret)
643cdef void  glUseProgram (GLuint program) with gil:
644    print "GL glUseProgram( program = ", program, ", )"
645    cgl.glUseProgram ( program)
646    ret = cgl.glGetError()
647    if ret: print "OpenGL Error %d / %x" % (ret, ret)
648cdef void  glValidateProgram (GLuint program) with gil:
649    print "GL glValidateProgram( program = ", program, ", )"
650    cgl.glValidateProgram ( program)
651    ret = cgl.glGetError()
652    if ret: print "OpenGL Error %d / %x" % (ret, ret)
653cdef void  glVertexAttrib1f (GLuint indx, GLfloat x) with gil:
654    print "GL glVertexAttrib1f( indx = ", indx, ", x = ", x, ", )"
655    cgl.glVertexAttrib1f ( indx, x)
656    ret = cgl.glGetError()
657    if ret: print "OpenGL Error %d / %x" % (ret, ret)
658cdef void  glVertexAttrib1fv (GLuint indx,  GLfloat* values) with gil:
659    print "GL glVertexAttrib1fv( indx = ", indx, ", values*=", repr(hex(<long> values)), ", )"
660    cgl.glVertexAttrib1fv ( indx, values)
661    ret = cgl.glGetError()
662    if ret: print "OpenGL Error %d / %x" % (ret, ret)
663cdef void  glVertexAttrib2f (GLuint indx, GLfloat x, GLfloat y) with gil:
664    print "GL glVertexAttrib2f( indx = ", indx, ", x = ", x, ", y = ", y, ", )"
665    cgl.glVertexAttrib2f ( indx, x, y)
666    ret = cgl.glGetError()
667    if ret: print "OpenGL Error %d / %x" % (ret, ret)
668cdef void  glVertexAttrib2fv (GLuint indx,  GLfloat* values) with gil:
669    print "GL glVertexAttrib2fv( indx = ", indx, ", values*=", repr(hex(<long> values)), ", )"
670    cgl.glVertexAttrib2fv ( indx, values)
671    ret = cgl.glGetError()
672    if ret: print "OpenGL Error %d / %x" % (ret, ret)
673cdef void  glVertexAttrib3f (GLuint indx, GLfloat x, GLfloat y, GLfloat z) with gil:
674    print "GL glVertexAttrib3f( indx = ", indx, ", x = ", x, ", y = ", y, ", z = ", z, ", )"
675    cgl.glVertexAttrib3f ( indx, x, y, z)
676    ret = cgl.glGetError()
677    if ret: print "OpenGL Error %d / %x" % (ret, ret)
678cdef void  glVertexAttrib3fv (GLuint indx,  GLfloat* values) with gil:
679    print "GL glVertexAttrib3fv( indx = ", indx, ", values*=", repr(hex(<long> values)), ", )"
680    cgl.glVertexAttrib3fv ( indx, values)
681    ret = cgl.glGetError()
682    if ret: print "OpenGL Error %d / %x" % (ret, ret)
683cdef void  glVertexAttrib4f (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) with gil:
684    print "GL glVertexAttrib4f( indx = ", indx, ", x = ", x, ", y = ", y, ", z = ", z, ", w = ", w, ", )"
685    cgl.glVertexAttrib4f ( indx, x, y, z, w)
686    ret = cgl.glGetError()
687    if ret: print "OpenGL Error %d / %x" % (ret, ret)
688cdef void  glVertexAttrib4fv (GLuint indx,  GLfloat* values) with gil:
689    print "GL glVertexAttrib4fv( indx = ", indx, ", values*=", repr(hex(<long> values)), ", )"
690    cgl.glVertexAttrib4fv ( indx, values)
691    ret = cgl.glGetError()
692    if ret: print "OpenGL Error %d / %x" % (ret, ret)
693cdef void  glVertexAttribPointer (GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride,  GLvoid* ptr) with gil:
694    print "GL glVertexAttribPointer( indx = ", indx, ", size = ", size, ", type = ", type, ", normalized = ", normalized, ", stride = ", stride, ", ptr*=", repr(hex(<long> ptr)), ", )"
695    cgl.glVertexAttribPointer ( indx, size, type, normalized, stride, ptr)
696    ret = cgl.glGetError()
697    if ret: print "OpenGL Error %d / %x" % (ret, ret)
698cdef void  glViewport (GLint x, GLint y, GLsizei width, GLsizei height) with gil:
699    print "GL glViewport( x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", )"
700    cgl.glViewport ( x, y, width, height)
701    ret = cgl.glGetError()
702    if ret: print "OpenGL Error %d / %x" % (ret, ret)