Enumeration that determines the type of a VertexElement.
More...
#include <CeresEngine/Mesh/VertexDeclaration.hpp>
Enumeration that determines the type of a VertexElement.
◆ RawType
◆ anonymous enum
The underlying raw value of VertexElementType.
| Enumerator |
|---|
| None | The vertex element has no type and thus no size.
Can be used for skipping non-present vertex elements.
|
| Scalar | The vertex element is a scalar.
|
| Vector2 | The vertex element is a 2-component vector.
|
| Vector3 | The vertex element is a 3-component vector.
|
| Vector4 | The vertex element is a 4-component vector.
|
| Matrix2 | The vertex element is a 2x2 matrix.
|
| Matrix3 | The vertex element is a 3x3 matrix.
|
| Matrix4 | The vertex element is a 4x4 matrix.
|
◆ VertexElementType() [1/3]
| constexpr CeresEngine::VertexElementType::VertexElementType |
( |
| ) |
|
|
constexprdefault |
◆ VertexElementType() [2/3]
◆ VertexElementType() [3/3]
◆ fromString()
Creates a new VertexElementType from a string representation.
If the string value is invalid, an empty optional is returned.
◆ fromType()
◆ getComponentCount()
| std::size_t CeresEngine::VertexElementType::getComponentCount |
( |
| ) |
const |
|
noexcept |
Gets the number of components on the type.
◆ isMatrix()
| bool CeresEngine::VertexElementType::isMatrix |
( |
| ) |
const |
|
inlinenoexcept |
Returns true if the element type is a matrix type.
◆ isNone()
| bool CeresEngine::VertexElementType::isNone |
( |
| ) |
const |
|
inlinenoexcept |
Returns true if the element type is a vector type.
◆ isScalar()
| bool CeresEngine::VertexElementType::isScalar |
( |
| ) |
const |
|
inlinenoexcept |
Returns true if the element type is a vector type.
◆ isVector()
| bool CeresEngine::VertexElementType::isVector |
( |
| ) |
const |
|
inlinenoexcept |
Returns true if the element type is a vector type.
◆ toString()
| StringView CeresEngine::VertexElementType::toString |
( |
| ) |
const |
|
noexcept |
◆ []
| enum { ... } CeresEngine::VertexElementType::raw |
The documentation for this struct was generated from the following file: