OpenGL.GL.APPLE.texture_range
OpenGL extension APPLE.texture_range
This module customises the behaviour of the
OpenGL.raw.GL.APPLE.texture_range to provide a more
Python-friendly API
Overview (from the spec)
This extension provides a method to specify the range of client address
space that may be used by a texture. In general, the storage size of a
texture may be easily determined by the texture's data type and geometry.
However, driver optimizations may be realized if an extended address
range is specified to encompass the storage of multiple textures, or to
encompass potential future changes in the size of a texture. A typical
usage of this extension is to specify an identical address range for
several textures in a particular working set that encompasses the storage
of all the textures in the set. This allows the driver to make a single
memory mapping for all of the textures.
Further, a mechanism is provided to allow the application to give the GL
driver a hint regarding the storage requirements of the texture data.
The official definition of this extension is available here:
http://www.opengl.org/registry/specs/APPLE/texture_range.txt
Functions
Constants
GL_STORAGE_CACHED_APPLE (34238)
GL_STORAGE_PRIVATE_APPLE (34237)
GL_STORAGE_SHARED_APPLE (34239)
GL_TEXTURE_RANGE_LENGTH_APPLE (34231)
GL_TEXTURE_RANGE_POINTER_APPLE (34232)
GL_TEXTURE_STORAGE_HINT_APPLE (34236)