Mercurial > touhou
diff 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 |
line wrap: on
line diff
--- a/pytouhou/ui/shader.py +++ b/pytouhou/ui/shader.py @@ -12,10 +12,11 @@ from pyglet.gl import (glCreateProgram, GL_FRAGMENT_SHADER, glShaderSource, glCompileShader, glGetShaderiv, GL_COMPILE_STATUS, GL_INFO_LOG_LENGTH, glGetShaderInfoLog, glAttachShader, glLinkProgram, - glGetProgramiv, GL_LINK_STATUS, glUseProgram, - glGetUniformLocation, glUniform1f, glUniform2f, - glUniform3f, glUniform4f, glUniform1i, glUniform2i, - glUniform3i, glUniform4i, glUniformMatrix4fv) + glGetProgramiv, glGetProgramInfoLog, GL_LINK_STATUS, + glUseProgram, glGetUniformLocation, glUniform1f, + glUniform2f, glUniform3f, glUniform4f, glUniform1i, + glUniform2i, glUniform3i, glUniform4i, + glUniformMatrix4fv) from ctypes import (c_char, c_char_p, c_int, POINTER, byref, cast, create_string_buffer)