comparison pytouhou/ui/shader.py @ 385:d8aab27a2ab2

Add missing imports, and remove side-effects in asserts.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 20 Oct 2012 20:44:11 +0200
parents 0537af9125a7
children 346614f788f1
comparison
equal deleted inserted replaced
384:690b5faaa0e6 385:d8aab27a2ab2
10 10
11 from pyglet.gl import (glCreateProgram, glCreateShader, GL_VERTEX_SHADER, 11 from pyglet.gl import (glCreateProgram, glCreateShader, GL_VERTEX_SHADER,
12 GL_FRAGMENT_SHADER, glShaderSource, glCompileShader, 12 GL_FRAGMENT_SHADER, glShaderSource, glCompileShader,
13 glGetShaderiv, GL_COMPILE_STATUS, GL_INFO_LOG_LENGTH, 13 glGetShaderiv, GL_COMPILE_STATUS, GL_INFO_LOG_LENGTH,
14 glGetShaderInfoLog, glAttachShader, glLinkProgram, 14 glGetShaderInfoLog, glAttachShader, glLinkProgram,
15 glGetProgramiv, GL_LINK_STATUS, glUseProgram, 15 glGetProgramiv, glGetProgramInfoLog, GL_LINK_STATUS,
16 glGetUniformLocation, glUniform1f, glUniform2f, 16 glUseProgram, glGetUniformLocation, glUniform1f,
17 glUniform3f, glUniform4f, glUniform1i, glUniform2i, 17 glUniform2f, glUniform3f, glUniform4f, glUniform1i,
18 glUniform3i, glUniform4i, glUniformMatrix4fv) 18 glUniform2i, glUniform3i, glUniform4i,
19 glUniformMatrix4fv)
19 20
20 from ctypes import (c_char, c_char_p, c_int, POINTER, byref, cast, 21 from ctypes import (c_char, c_char_p, c_int, POINTER, byref, cast,
21 create_string_buffer) 22 create_string_buffer)
22 23
23 24