Triangle Struct
Static triangle mesh definition. More...
Declaration
Public Static Functions Index
| static MeshData | meshData () |
|
Creates a lightweight MeshData view over the static triangle buffers. More... | |
Public Static Attributes Index
| static constexpr std::array< Vertex, 3 > | vertices = ... |
|
Interleaved vertex data (position, normal, UV). More... | |
| static constexpr std::array< unsigned int, 3 > | indices = ... |
| static constexpr PrimitiveType | primitiveType = PrimitiveType::Triangles |
|
Primitive topology used to interpret indices. More... | |
Description
Static triangle mesh definition.
Definition at line 23 of file Triangle.ixx.
Public Static Functions
meshData()
| inline static |
Creates a lightweight MeshData view over the static triangle buffers.
- Returns
MeshData referencing vertices, indices, and primitiveType.
Definition at line 50 of file Triangle.ixx.
References indices, primitiveType and vertices.
Public Static Attributes
indices
| constexpr static |
primitiveType
| constexpr static |
Primitive topology used to interpret indices.
Definition at line 44 of file Triangle.ixx.
Referenced by meshData.
vertices
| constexpr static |
Interleaved vertex data (position, normal, UV).
- Initialiser
-
{{ {{-1.0f, -1.0f, 0.0f}, {0.0f, 0.0f, 1.0f}, {0.0f, 0.0f}}, {{ 1.0f, -1.0f, 0.0f}, {0.0f, 0.0f, 1.0f}, {1.0f, 0.0f}}, {{ 0.0f, 1.0f, 0.0f}, {0.0f, 0.0f, 1.0f}, {0.5f, 1.0f}} }}
Definition at line 28 of file Triangle.ixx.
Referenced by meshData.
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.