|
| | Vertex (void) |
| | Default constructor.
|
| |
| | Vertex (const Position< VectorComponent > &position, const math::Vector< VectorComponent, 3 > &normal, const math::Vector< VectorComponent, 2 > &textureCoordinates, const Color32Bit &color) |
| | Construct from all vertex attributes.
|
| |
| void | setPosition (const Position< VectorComponent > &position) |
| | Set vertex position.
|
| |
| Position< VectorComponent > | getPosition (void) const |
| | Get vertex position.
|
| |
| void | setNormal (const math::Vector< VectorComponent, 3 > &normal) |
| | Set vertex normal.
|
| |
| math::Vector< VectorComponent, 3 > | getNormal (void) const |
| | Get vertex normal.
|
| |
| void | setTextureCoordinates (const math::Vector< VectorComponent, 2 > &textureCoordinates) |
| | Set vertex texture coordinates.
|
| |
| math::Vector< VectorComponent, 2 > | getTextureCoordinates (void) const |
| | Get vertex texture coordinates.
|
| |
| void | setColor (const Color32Bit &color) |
| | Set vertex color.
|
| |
| Color32Bit | getColor (void) const |
| | Get vertex color.
|
| |
| Vertex & | setAttributes (const Position< VectorComponent > &position, const math::Vector< VectorComponent, 3 > &normal, const math::Vector< VectorComponent, 2 > &textureCoordinates, const Color32Bit &color) |
| | Set all vertex attributes at once.
|
| |
| bool | hasUnitNormal (VectorComponent epsilon=VectorComponent { 1e-5 }) const |
| | Check if the normal is approximately unit length.
|
| |
| bool | operator== (const Vertex &other) const |
| | Equality comparison.
|
| |
| bool | operator!= (const Vertex &other) const |
| | Inequality comparison.
|
| |
template<CanBeVectorComponent VectorComponent>
class utility::graphic::Vertex< VectorComponent >
Vertex type containing common mesh attributes.
- Template Parameters
-
| VectorComponent | Arithmetic type for vertex components (e.g., float, double). |
| ColorComponent | Arithmetic type for color components (e.g., float, uint8_t). |
Definition at line 37 of file vertex.hpp.