Signature
glBufferData(
GLenum (
target
)
,
GLsizeiptr (
size
)
,
const GLvoid * (
data
)
,
GLenum (
usage
)
)-> void
glBufferData(
target
,
size
,
data
,
usage
)
Copy given data into the currently bound vertex-buffer-data object
target -- the symbolic constant indicating which buffer type is intended
size -- if provided, the count-in-bytes of the array
data -- data-pointer to be used, may be None to initialize without
copying over a data-set
usage -- hint to the driver as to how to set up access to the buffer
Note: parameter "size" can be omitted, which makes the signature
glBufferData( target, data, usage )
instead of:
glBufferData( target, size, data, usage )
Parameters
Sample Code References
The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.
glBufferData