VertexDomain Class

Inheritance diagram of VertexDomain

class VertexDomain(attribute_usages)

Management of a set of vertex lists.

Construction of a vertex domain is usually done with the create_domain function.

Constructor:

__init__(attribute_usages)

Methods:

create(count) Create a VertexList in this domain.
draw(mode[, vertex_list]) Draw vertices in the domain.

Methods

VertexDomain.create(count)

Create a VertexList in this domain.

Parameters:count (int) – Number of vertices to create.
Return type:VertexList
VertexDomain.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:
  • mode (int) – OpenGL drawing mode, e.g. GL_POINTS, GL_LINES, etc.
  • vertex_list (VertexList) – Vertex list to draw, or None for all lists in this domain.

Table Of Contents

Previous topic

IndexedVertexList Class

Next topic

VertexList Class