firestryker's picture
download
raw
1.42 kB
'''OpenGL extension EXT.texture3D
This module customises the behaviour of the
OpenGL.raw.GL.EXT.texture3D to provide a more
Python-friendly API
Overview (from the spec)
This extension defines 3-dimensional texture mapping. In order to
define a 3D texture image conveniently, this extension also defines the
in-memory formats for 3D images, and adds pixel storage modes to support
them.
One important application of 3D textures is rendering volumes of image
data.
The official definition of this extension is available here:
http://www.opengl.org/registry/specs/EXT/texture3D.txt
'''
from OpenGL import platform, constant, arrays
from OpenGL import extensions, wrapper
import ctypes
from OpenGL.raw.GL import _types, _glgets
from OpenGL.raw.GL.EXT.texture3D import *
from OpenGL.raw.GL.EXT.texture3D import _EXTENSION_NAME
def glInitTexture3DEXT():
'''Return boolean indicating whether this extension is available'''
from OpenGL import extensions
return extensions.hasGLExtension( _EXTENSION_NAME )
# INPUT glTexImage3DEXT.pixels size not checked against 'format,type,width,height,depth'
glTexImage3DEXT=wrapper.wrapper(glTexImage3DEXT).setInputArraySize(
'pixels', None
)
# INPUT glTexSubImage3DEXT.pixels size not checked against 'format,type,width,height,depth'
glTexSubImage3DEXT=wrapper.wrapper(glTexSubImage3DEXT).setInputArraySize(
'pixels', None
)
### END AUTOGENERATED SECTION

Xet Storage Details

Size:
1.42 kB
·
Xet hash:
aee0ee602524c36f60624d770d87821f409e6de2cd294f7d18a9c02b298d39ca

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.