OpenGL.GL.VERSION.GL_1_5
OpenGL extension VERSION.GL_1_5
This module customises the behaviour of the
OpenGL.raw.GL.VERSION.GL_1_5 to provide a more
Python-friendly API
The official definition of this extension is available here:
http://www.opengl.org/registry/specs/VERSION/GL_1_5.txt
Functions
glBufferData(
target
,
size
,
data
= None
,
usage
= None
)
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 )
glBufferSubData(
target
,
offset
,
size
= None
,
data
= None
)
Copy subset of data into the currently bound vertex-buffer-data object
- target
- the symbolic constant indicating which buffer type is intended
- offset
- offset from beginning of buffer at which to copy bytes
- size
- the count-in-bytes of the array (if an int/long), if None, calculate size from data, if an array and data is None, use as data (i.e. the parameter can be omitted and calculated)
- data
- data-pointer to be used, may be None to initialize without copying over a data-set
Note that if size is not an int/long it is considered to be data
*iff* data is None
glGenQueries(
n
,
ids
= None
)
Generate n queries, if ids is None, is allocated
returns array of ids
Constants
GL_ARRAY_BUFFER (34962)
GL_ARRAY_BUFFER_BINDING (34964)
GL_BUFFER_ACCESS (35003)
GL_BUFFER_MAP_POINTER (35005)
GL_BUFFER_MAPPED (35004)
GL_BUFFER_SIZE (34660)
GL_BUFFER_USAGE (34661)
GL_COLOR_ARRAY_BUFFER_BINDING (34968)
GL_CURRENT_FOG_COORD (33875)
GL_CURRENT_QUERY (34917)
GL_DYNAMIC_COPY (35050)
GL_DYNAMIC_DRAW (35048)
GL_DYNAMIC_READ (35049)
GL_EDGE_FLAG_ARRAY_BUFFER_BINDING (34971)
GL_ELEMENT_ARRAY_BUFFER (34963)
GL_ELEMENT_ARRAY_BUFFER_BINDING (34965)
GL_FOG_COORD (33873)
GL_FOG_COORD_ARRAY (33879)
GL_FOG_COORD_ARRAY_BUFFER_BINDING (34973)
GL_FOG_COORD_ARRAY_POINTER (33878)
GL_FOG_COORD_ARRAY_STRIDE (33877)
GL_FOG_COORD_ARRAY_TYPE (33876)
GL_FOG_COORD_SRC (33872)
GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING (34973)
GL_INDEX_ARRAY_BUFFER_BINDING (34969)
GL_NORMAL_ARRAY_BUFFER_BINDING (34967)
GL_QUERY_COUNTER_BITS (34916)
GL_QUERY_RESULT (34918)
GL_QUERY_RESULT_AVAILABLE (34919)
GL_READ_ONLY (35000)
GL_READ_WRITE (35002)
GL_SAMPLES_PASSED (35092)
GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING (34972)
GL_SRC0_ALPHA (34184)
GL_SRC0_RGB (34176)
GL_SRC1_ALPHA (34185)
GL_SRC1_RGB (34177)
GL_SRC2_ALPHA (34186)
GL_SRC2_RGB (34178)
GL_STATIC_COPY (35046)
GL_STATIC_DRAW (35044)
GL_STATIC_READ (35045)
GL_STREAM_COPY (35042)
GL_STREAM_DRAW (35040)
GL_STREAM_READ (35041)
GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING (34970)
GL_VERTEX_ARRAY_BUFFER_BINDING (34966)
GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING (34975)
GL_WEIGHT_ARRAY_BUFFER_BINDING (34974)
GL_WRITE_ONLY (35001)