Viewing file: gpu_program_parameters.py (1.19 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
'''OpenGL extension EXT.gpu_program_parameters
This module customises the behaviour of the OpenGL.raw.GL.EXT.gpu_program_parameters to provide a more Python-friendly API
Overview (from the spec) This extension provides a new set of procedures to load multiple consecutive program environment parameters more efficiently, via a single GL call instead of multiple calls. This will reduce the amount of CPU overhead involved in loading parameters. With the existing ARB_vertex_program and ARB_fragment_program APIs, program parameters must be loaded one at a time, via separate calls. While the NV_vertex_program extension provides a set of similar functions that can be used to load program environment parameters (which are equivalent to "program parameters" in NV_vertex_program), no such function exists for program local parameters.
The official definition of this extension is available here: http://www.opengl.org/registry/specs/EXT/gpu_program_parameters.txt ''' from OpenGL import platform, constants, constant, arrays from OpenGL import extensions, wrapper from OpenGL.GL import glget import ctypes from OpenGL.raw.GL.EXT.gpu_program_parameters import * ### END AUTOGENERATED SECTION
|