comparison 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
comparison
equal deleted inserted replaced
382:b9aecdc6f72f 383:0537af9125a7
6 # (see http://www.boost.org/LICENSE_1_0.txt) 6 # (see http://www.boost.org/LICENSE_1_0.txt)
7 # 7 #
8 # Source: https://swiftcoder.wordpress.com/2008/12/19/simple-glsl-wrapper-for-pyglet/ 8 # Source: https://swiftcoder.wordpress.com/2008/12/19/simple-glsl-wrapper-for-pyglet/
9 # 9 #
10 10
11 from pyglet.gl import * 11 from pyglet.gl import (glCreateProgram, glCreateShader, GL_VERTEX_SHADER,
12 GL_FRAGMENT_SHADER, glShaderSource, glCompileShader,
13 glGetShaderiv, GL_COMPILE_STATUS, GL_INFO_LOG_LENGTH,
14 glGetShaderInfoLog, glAttachShader, glLinkProgram,
15 glGetProgramiv, GL_LINK_STATUS, glUseProgram,
16 glGetUniformLocation, glUniform1f, glUniform2f,
17 glUniform3f, glUniform4f, glUniform1i, glUniform2i,
18 glUniform3i, glUniform4i, glUniformMatrix4fv)
19
20 from ctypes import (c_char, c_char_p, c_int, POINTER, byref, cast,
21 create_string_buffer)
12 22
13 23
14 class GLSLException(Exception): 24 class GLSLException(Exception):
15 pass 25 pass
16 26