File: vertex_array_object.py

package info (click to toggle)
pyopengl 3.0.0~b6-3
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 5,696 kB
  • ctags: 26,182
  • sloc: python: 34,233; ansic: 70; sh: 26; makefile: 15
file content (140 lines) | stat: -rw-r--r-- 5,914 bytes parent folder | download
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
'''OpenGL extension ATI.vertex_array_object

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://oss.sgi.com/projects/ogl-sample/registry/ATI/vertex_array_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_ATI_vertex_array_object'
GL_STATIC_ATI = constant.Constant( 'GL_STATIC_ATI', 0x8760 )
GL_DYNAMIC_ATI = constant.Constant( 'GL_DYNAMIC_ATI', 0x8761 )
GL_PRESERVE_ATI = constant.Constant( 'GL_PRESERVE_ATI', 0x8762 )
GL_DISCARD_ATI = constant.Constant( 'GL_DISCARD_ATI', 0x8763 )
GL_OBJECT_BUFFER_SIZE_ATI = constant.Constant( 'GL_OBJECT_BUFFER_SIZE_ATI', 0x8764 )
GL_OBJECT_BUFFER_USAGE_ATI = constant.Constant( 'GL_OBJECT_BUFFER_USAGE_ATI', 0x8765 )
GL_ARRAY_OBJECT_BUFFER_ATI = constant.Constant( 'GL_ARRAY_OBJECT_BUFFER_ATI', 0x8766 )
GL_ARRAY_OBJECT_OFFSET_ATI = constant.Constant( 'GL_ARRAY_OBJECT_OFFSET_ATI', 0x8767 )
glNewObjectBufferATI = platform.createExtensionFunction( 
	'glNewObjectBufferATI', dll=platform.GL,
	extension=EXTENSION_NAME,
	resultType=constants.GLuint, 
	argTypes=(constants.GLsizei, ctypes.c_void_p, constants.GLenum,),
	doc = 'glNewObjectBufferATI( GLsizei(size), c_void_p(pointer), GLenum(usage) ) -> constants.GLuint',
	argNames = ('size', 'pointer', 'usage',),
)

glIsObjectBufferATI = platform.createExtensionFunction( 
	'glIsObjectBufferATI', dll=platform.GL,
	extension=EXTENSION_NAME,
	resultType=constants.GLboolean, 
	argTypes=(constants.GLuint,),
	doc = 'glIsObjectBufferATI( GLuint(buffer) ) -> constants.GLboolean',
	argNames = ('buffer',),
)

glUpdateObjectBufferATI = platform.createExtensionFunction( 
	'glUpdateObjectBufferATI', dll=platform.GL,
	extension=EXTENSION_NAME,
	resultType=None, 
	argTypes=(constants.GLuint, constants.GLuint, constants.GLsizei, ctypes.c_void_p, constants.GLenum,),
	doc = 'glUpdateObjectBufferATI( GLuint(buffer), GLuint(offset), GLsizei(size), c_void_p(pointer), GLenum(preserve) ) -> None',
	argNames = ('buffer', 'offset', 'size', 'pointer', 'preserve',),
)

glGetObjectBufferfvATI = platform.createExtensionFunction( 
	'glGetObjectBufferfvATI', dll=platform.GL,
	extension=EXTENSION_NAME,
	resultType=None, 
	argTypes=(constants.GLuint, constants.GLenum, arrays.GLfloatArray,),
	doc = 'glGetObjectBufferfvATI( GLuint(buffer), GLenum(pname), GLfloatArray(params) ) -> None',
	argNames = ('buffer', 'pname', 'params',),
)

glGetObjectBufferivATI = platform.createExtensionFunction( 
	'glGetObjectBufferivATI', dll=platform.GL,
	extension=EXTENSION_NAME,
	resultType=None, 
	argTypes=(constants.GLuint, constants.GLenum, arrays.GLintArray,),
	doc = 'glGetObjectBufferivATI( GLuint(buffer), GLenum(pname), GLintArray(params) ) -> None',
	argNames = ('buffer', 'pname', 'params',),
)

glFreeObjectBufferATI = platform.createExtensionFunction( 
	'glFreeObjectBufferATI', dll=platform.GL,
	extension=EXTENSION_NAME,
	resultType=None, 
	argTypes=(constants.GLuint,),
	doc = 'glFreeObjectBufferATI( GLuint(buffer) ) -> None',
	argNames = ('buffer',),
)

glArrayObjectATI = platform.createExtensionFunction( 
	'glArrayObjectATI', dll=platform.GL,
	extension=EXTENSION_NAME,
	resultType=None, 
	argTypes=(constants.GLenum, constants.GLint, constants.GLenum, constants.GLsizei, constants.GLuint, constants.GLuint,),
	doc = 'glArrayObjectATI( GLenum(array), GLint(size), GLenum(type), GLsizei(stride), GLuint(buffer), GLuint(offset) ) -> None',
	argNames = ('array', 'size', 'type', 'stride', 'buffer', 'offset',),
)

glGetArrayObjectfvATI = platform.createExtensionFunction( 
	'glGetArrayObjectfvATI', dll=platform.GL,
	extension=EXTENSION_NAME,
	resultType=None, 
	argTypes=(constants.GLenum, constants.GLenum, arrays.GLfloatArray,),
	doc = 'glGetArrayObjectfvATI( GLenum(array), GLenum(pname), GLfloatArray(params) ) -> None',
	argNames = ('array', 'pname', 'params',),
)

glGetArrayObjectivATI = platform.createExtensionFunction( 
	'glGetArrayObjectivATI', dll=platform.GL,
	extension=EXTENSION_NAME,
	resultType=None, 
	argTypes=(constants.GLenum, constants.GLenum, arrays.GLintArray,),
	doc = 'glGetArrayObjectivATI( GLenum(array), GLenum(pname), GLintArray(params) ) -> None',
	argNames = ('array', 'pname', 'params',),
)

glVariantArrayObjectATI = platform.createExtensionFunction( 
	'glVariantArrayObjectATI', dll=platform.GL,
	extension=EXTENSION_NAME,
	resultType=None, 
	argTypes=(constants.GLuint, constants.GLenum, constants.GLsizei, constants.GLuint, constants.GLuint,),
	doc = 'glVariantArrayObjectATI( GLuint(id), GLenum(type), GLsizei(stride), GLuint(buffer), GLuint(offset) ) -> None',
	argNames = ('id', 'type', 'stride', 'buffer', 'offset',),
)

glGetVariantArrayObjectfvATI = platform.createExtensionFunction( 
	'glGetVariantArrayObjectfvATI', dll=platform.GL,
	extension=EXTENSION_NAME,
	resultType=None, 
	argTypes=(constants.GLuint, constants.GLenum, arrays.GLfloatArray,),
	doc = 'glGetVariantArrayObjectfvATI( GLuint(id), GLenum(pname), GLfloatArray(params) ) -> None',
	argNames = ('id', 'pname', 'params',),
)

glGetVariantArrayObjectivATI = platform.createExtensionFunction( 
	'glGetVariantArrayObjectivATI', dll=platform.GL,
	extension=EXTENSION_NAME,
	resultType=None, 
	argTypes=(constants.GLuint, constants.GLenum, arrays.GLintArray,),
	doc = 'glGetVariantArrayObjectivATI( GLuint(id), GLenum(pname), GLintArray(params) ) -> None',
	argNames = ('id', 'pname', 'params',),
)


def glInitVertexArrayObjectATI():
	'''Return boolean indicating whether this extension is available'''
	return extensions.hasGLExtension( EXTENSION_NAME )