1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
|
'''OpenGL extension EXT.texture_object
Overview (from the spec)
This extension introduces named texture objects. The only way to name
a texture in GL 1.0 is by defining it as a single display list. Because
display lists cannot be edited, these objects are static. Yet it is
important to be able to change the images and parameters of a texture.
The official definition of this extension is available here:
http://oss.sgi.com/projects/ogl-sample/registry/EXT/texture_object.txt
Automatically generated by the get_gl_extensions script, do not edit!
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_EXT_texture_object'
GL_TEXTURE_PRIORITY_EXT = constant.Constant( 'GL_TEXTURE_PRIORITY_EXT', 0x8066 )
GL_TEXTURE_RESIDENT_EXT = constant.Constant( 'GL_TEXTURE_RESIDENT_EXT', 0x8067 )
GL_TEXTURE_1D_BINDING_EXT = constant.Constant( 'GL_TEXTURE_1D_BINDING_EXT', 0x8068 )
glget.addGLGetConstant( GL_TEXTURE_1D_BINDING_EXT, (1,) )
GL_TEXTURE_2D_BINDING_EXT = constant.Constant( 'GL_TEXTURE_2D_BINDING_EXT', 0x8069 )
glget.addGLGetConstant( GL_TEXTURE_2D_BINDING_EXT, (1,) )
GL_TEXTURE_3D_BINDING_EXT = constant.Constant( 'GL_TEXTURE_3D_BINDING_EXT', 0x806A )
glget.addGLGetConstant( GL_TEXTURE_3D_BINDING_EXT, (1,) )
glAreTexturesResidentEXT = platform.createExtensionFunction(
'glAreTexturesResidentEXT', dll=platform.GL,
extension=EXTENSION_NAME,
resultType=constants.GLboolean,
argTypes=(constants.GLsizei, arrays.GLuintArray, ctypes.POINTER(constants.GLboolean),),
doc = 'glAreTexturesResidentEXT( GLsizei(n), GLuintArray(textures), POINTER(constants.GLboolean)(residences) ) -> constants.GLboolean',
argNames = ('n', 'textures', 'residences',),
)
glBindTextureEXT = platform.createExtensionFunction(
'glBindTextureEXT', dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None,
argTypes=(constants.GLenum, constants.GLuint,),
doc = 'glBindTextureEXT( GLenum(target), GLuint(texture) ) -> None',
argNames = ('target', 'texture',),
)
glDeleteTexturesEXT = platform.createExtensionFunction(
'glDeleteTexturesEXT', dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None,
argTypes=(constants.GLsizei, arrays.GLuintArray,),
doc = 'glDeleteTexturesEXT( GLsizei(n), GLuintArray(textures) ) -> None',
argNames = ('n', 'textures',),
)
glGenTexturesEXT = platform.createExtensionFunction(
'glGenTexturesEXT', dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None,
argTypes=(constants.GLsizei, arrays.GLuintArray,),
doc = 'glGenTexturesEXT( GLsizei(n), GLuintArray(textures) ) -> None',
argNames = ('n', 'textures',),
)
glIsTextureEXT = platform.createExtensionFunction(
'glIsTextureEXT', dll=platform.GL,
extension=EXTENSION_NAME,
resultType=constants.GLboolean,
argTypes=(constants.GLuint,),
doc = 'glIsTextureEXT( GLuint(texture) ) -> constants.GLboolean',
argNames = ('texture',),
)
glPrioritizeTexturesEXT = platform.createExtensionFunction(
'glPrioritizeTexturesEXT', dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None,
argTypes=(constants.GLsizei, arrays.GLuintArray, arrays.GLclampfArray,),
doc = 'glPrioritizeTexturesEXT( GLsizei(n), GLuintArray(textures), GLclampfArray(priorities) ) -> None',
argNames = ('n', 'textures', 'priorities',),
)
def glInitTextureObjectEXT():
'''Return boolean indicating whether this extension is available'''
return extensions.hasGLExtension( EXTENSION_NAME )
|