Construct a new Shape
with the given texture and vertices.
Type of primitive the new Shape
will represent.
Texture to use for this shape, or null
for no texture.
A vertex list containing vertices for this shape.
Optional index list specifying which members of vertices
are used in the
shape. Omit this to use the entire vertex list.
Index list specifying which elements of vertexList
are used in the shape. Set this to
null
to use all elements of the vertex list in order.
Texture image used to texture the shape when rendered. How the texture is applied is
typically determined by the u
and v
components of each vertex, but may depend on the
shader in use. Use null
for no texture.
Vertex list containing the vertices used in this shape.
Draw this shape to the backbuffer using an optional transform.
Transform to be applied before the projection transform.
Draw this shape to a given surface using an optional transform.
Surface the shape will be rendered to.
Transform to be applied before the projection transform.
Render a shape of the given type to the backbuffer.
Type of primitive to draw.
Array of Vertex
objects describing the shape's vertices.
Render a textured shape of the given type to the backbuffer.
Type of primitive to draw.
Texture to use for the shape, or null
for no texture.
Array of Vertex
objects describing the shape's vertices.
Render a shape of the given type to a surface.
Surface on which to render the shape.
Type of primitive to draw.
Array of Vertex
objects describing the shape's vertices.
Render a textured shape of the given type to a surface.
Surface on which to render the shape.
Type of primitive to draw.
Texture to use for the shape, or null
for no texture.
Array of Vertex
objects describing the shape's vertices.
Generated using TypeDoc
Represents a graphics primitive whose parameters are stored on the GPU.