Determines the semantic of a VertexElement.
More...
#include <CeresEngine/Mesh/VertexDeclaration.hpp>
Determines the semantic of a VertexElement.
◆ RawType
◆ anonymous enum
The underlying raw value of VertexElementSemantic.
| Enumerator |
|---|
| None | The vertex element should be ignored and don't represent anything.
|
| Position | The vertex element represents the vertex position.
|
| Normal | The vertex element represents the vertex normal vector.
|
| TexCoord | The vertex element represents the vertex texture coordinate.
|
| Tangent | The vertex element represents the vertex tangent vector.
|
| Bitangent | The vertex element represents the vertex bi-tangent vector.
|
| Color | The vertex element represents a vertex color channel.
|
◆ VertexElementSemantic() [1/3]
| constexpr CeresEngine::VertexElementSemantic::VertexElementSemantic |
( |
| ) |
|
|
constexprdefault |
◆ VertexElementSemantic() [2/3]
| constexpr CeresEngine::VertexElementSemantic::VertexElementSemantic |
( |
RawType |
raw | ) |
|
|
inlineconstexpr |
◆ VertexElementSemantic() [3/3]
◆ fromString()
Creates a new VertexElementSemantic from a string representation.
If the string value is invalid, an empty optional is returned.
◆ toString()
| StringView CeresEngine::VertexElementSemantic::toString |
( |
| ) |
const |
|
noexcept |
◆ []
| enum { ... } CeresEngine::VertexElementSemantic::raw |
The documentation for this struct was generated from the following file: