IndexedVertexDomain
(attribute_usages, index_gl_type=5125)¶Management of a set of indexed vertex lists.
Construction of an indexed vertex domain is usually done with the create_indexed_domain function.
Constructor:
__init__
(attribute_usages, index_gl_type=5125)¶Methods:
create
(count, index_count)Create an IndexedVertexList in this domain. draw
(mode[, vertex_list])Draw vertices in the domain. get_index_region
(start, count)Get a region of the index buffer.
IndexedVertexDomain.
create
(count, index_count)¶Create an IndexedVertexList in this domain.
Parameters: |
|
---|
IndexedVertexDomain.
draw
(mode, vertex_list=None)¶Draw vertices in the domain.
If vertex_list is not specified, all vertices in the domain are drawn. This is the most efficient way to render primitives.
If vertex_list specifies a VertexList, only primitives in that list will be drawn.
Parameters: |
|
---|
IndexedVertexDomain.
get_index_region
(start, count)¶Get a region of the index buffer.
Parameters: |
|
---|---|
Return type: | Array of int |