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
|
'''OpenGL extension ATI.vertex_array_object
This module customises the behaviour of the
OpenGL.raw.GL.ATI.vertex_array_object to provide a more
Python-friendly API
Overview (from the spec)
This extension defines an interface that allows multiple sets of
vertex array data to be cached in persistent server-side memory.
It is intended to allow client data to be stored in memory that
can be directly accessed by graphics hardware.
The official definition of this extension is available here:
http://www.opengl.org/registry/specs/ATI/vertex_array_object.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.ATI.vertex_array_object import *
from OpenGL.raw.GL.ATI.vertex_array_object import _EXTENSION_NAME
def glInitVertexArrayObjectATI():
'''Return boolean indicating whether this extension is available'''
from OpenGL import extensions
return extensions.hasGLExtension( _EXTENSION_NAME )
# INPUT glNewObjectBufferATI.pointer size not checked against size
glNewObjectBufferATI=wrapper.wrapper(glNewObjectBufferATI).setInputArraySize(
'pointer', None
)
# INPUT glUpdateObjectBufferATI.pointer size not checked against size
glUpdateObjectBufferATI=wrapper.wrapper(glUpdateObjectBufferATI).setInputArraySize(
'pointer', None
)
glGetObjectBufferfvATI=wrapper.wrapper(glGetObjectBufferfvATI).setOutput(
'params',size=(1,),orPassIn=True
)
glGetObjectBufferivATI=wrapper.wrapper(glGetObjectBufferivATI).setOutput(
'params',size=(1,),orPassIn=True
)
glGetArrayObjectfvATI=wrapper.wrapper(glGetArrayObjectfvATI).setOutput(
'params',size=(1,),orPassIn=True
)
glGetArrayObjectivATI=wrapper.wrapper(glGetArrayObjectivATI).setOutput(
'params',size=(1,),orPassIn=True
)
glGetVariantArrayObjectfvATI=wrapper.wrapper(glGetVariantArrayObjectfvATI).setOutput(
'params',size=(1,),orPassIn=True
)
glGetVariantArrayObjectivATI=wrapper.wrapper(glGetVariantArrayObjectivATI).setOutput(
'params',size=(1,),orPassIn=True
)
### END AUTOGENERATED SECTION
|