Ejemplo n.º 1
0
def reshape (width, height):
	aspect = gl.glGetUniformLocation (program, 'aspect')
	theaspect = (float (height) / width, 1) if width > height else (1, float (width) / height)
	gl.glProgramUniform2f (program, aspect, theaspect [0], theaspect [1])

	gl.glViewport (0, 0, width, height)