VertexList Class

Inheritance diagram of VertexList

class VertexList(domain, start, count)

A list of vertices within a VertexDomain. Use VertexDomain.create to construct this list.

Constructor:

__init__(domain, start, count)

Methods:

delete() Delete this group.
draw(mode) Draw this vertex list in the given OpenGL mode.
get_domain() Get the domain this vertex list belongs to.
get_size() Get the number of vertices in the list.
migrate(domain) Move this group from its current domain and add to the specified one.
resize(count) Resize this group.

Attributes:

colors Array of color data.
edge_flags Array of edge flag data.
fog_coords Array of fog coordinate data.
normals Array of normal vector data.
secondary_colors Array of secondary color data.
tex_coords Array of texture coordinate data.
vertices Array of vertex coordinate data.

Methods

VertexList.delete()

Delete this group.

VertexList.draw(mode)

Draw this vertex list in the given OpenGL mode.

Parameters:mode (int) – OpenGL drawing mode, e.g. GL_POINTS, GL_LINES, etc.
VertexList.get_domain()

Get the domain this vertex list belongs to.

Return type:VertexDomain
VertexList.get_size()

Get the number of vertices in the list.

Return type:int
VertexList.migrate(domain)

Move this group from its current domain and add to the specified one. Attributes on domains must match. (In practice, used to change parent state of some vertices).

Parameters:domain (VertexDomain) – Domain to migrate this vertex list to.
VertexList.resize(count)

Resize this group.

Parameters:count (int) – New number of vertices in the list.

Attributes

VertexList.colors

Array of color data.

VertexList.edge_flags

Array of edge flag data.

VertexList.fog_coords

Array of fog coordinate data.

VertexList.normals

Array of normal vector data.

VertexList.secondary_colors

Array of secondary color data.

VertexList.tex_coords

Array of texture coordinate data.

VertexList.vertices

Array of vertex coordinate data.

Table Of Contents

Previous topic

VertexDomain Class

Next topic

create_attribute_usage Function