comparison pytouhou/ui/opengl/shader.pyx @ 584:538b52aafbca

Split GLenum into subtypes, in order to add type safety when calling OpenGL functions.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 08 Oct 2014 13:21:03 +0200
parents 6e79756b7f42
children e15672733c93
comparison
equal deleted inserted replaced
583:47cf4e3d159d 584:538b52aafbca
55 self.link() 55 self.link()
56 56
57 if use_debug_group: 57 if use_debug_group:
58 glPopDebugGroup() 58 glPopDebugGroup()
59 59
60 cdef void create_shader(self, const GLchar *string, GLenum shader_type): 60 cdef void create_shader(self, const GLchar *string, GLenum_shader shader_type):
61 cdef GLint temp 61 cdef GLint temp
62 cdef const GLchar *strings[2] 62 cdef const GLchar *strings[2]
63 strings[:] = [shader_header, string] 63 strings[:] = [shader_header, string]
64 64
65 # create the shader handle 65 # create the shader handle