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... | |
| static helios::math::aabbf | boundsData () |
|
Returns the local bounds of this mesh. 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 24 of file Triangle.ixx.
Public Static Functions
boundsData()
| inline static |
Returns the local bounds of this mesh.
- Returns
local bounds as aabb
Definition at line 63 of file Triangle.ixx.
meshData()
| inline static |
Creates a lightweight MeshData view over the static triangle buffers.
- Returns
MeshData referencing vertices, indices, and primitiveType.
Definition at line 51 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 45 of file Triangle.ixx.
Referenced by meshData.
vertices
| constexpr static |
Interleaved vertex data (position, normal, UV).
- Initialiser
Definition at line 29 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.