Mercurial > touhou
diff pytouhou/ui/shader.py @ 383:0537af9125a7
Replace wildcard imports with normal ones.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 07 Sep 2012 13:05:19 +0200 |
parents | 74471afbac37 |
children | d8aab27a2ab2 |
line wrap: on
line diff
--- a/pytouhou/ui/shader.py +++ b/pytouhou/ui/shader.py @@ -8,7 +8,17 @@ # Source: https://swiftcoder.wordpress.com/2008/12/19/simple-glsl-wrapper-for-pyglet/ # -from pyglet.gl import * +from pyglet.gl import (glCreateProgram, glCreateShader, GL_VERTEX_SHADER, + 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) + +from ctypes import (c_char, c_char_p, c_int, POINTER, byref, cast, + create_string_buffer) class GLSLException(Exception):