[][src]Module starstruck::primitive

Structs

VertexXY

A vertex with two floats. This is often used to represent a 2D position

VertexXYRG
VertexXYZ
VertexXYZRG
VertexXYZRGBAUV

Traits

Index

A marker trait for anything that can be used as an index

Vertex

This trait is used to represent a Vertex. A vertex is a 3 dimensional point in space and is used bu the GPU to create primitives (most often triangles) that is then used to calculate our pixels. A vertex can also have some metadata attached to it like colors or texture coordinates.

Type Definitions

Vertex2D
Vertex2DUV
Vertex3D
Vertex3DUV
Vertex3dColorUv