Vertex for geometry.
More...
#include <kanzi/core.ui/graphics2d/geometry.hpp>
◆ Vertex() [1/2]
kanzi::Geometry::Vertex::Vertex |
( |
| ) |
|
|
explicitdefault |
◆ Vertex() [2/2]
Constructor.
- Parameters
-
x | X coordinate. |
y | Y coordinate. |
s | S texture coordinate. |
t | T texture coordinate. |
◆ getPosition()
Vector3 kanzi::Geometry::Vertex::getPosition |
( |
| ) |
const |
|
inline |
Gets the position.
- Returns
- Position vector.
◆ setPosition()
Sets the position component.
Z coordinate is initialized to 0.0f.
- Parameters
-
x | X coordinate. |
y | Y coordinate. |
◆ getTexcoord()
Vector2 kanzi::Geometry::Vertex::getTexcoord |
( |
| ) |
const |
|
inline |
Gets the texcoord.
- Returns
- Texcoord vector.
◆ getPositionOffset()
Gets the offset for the position.
- Returns
- Position offset.
◆ getTexcoordOffset()
Gets the offset for the texture coordinate.
- Returns
- Texture coordinate offset.
◆ m_position
Vector3 kanzi::Geometry::Vertex::m_position |
◆ m_texcoord
Vector2 kanzi::Geometry::Vertex::m_texcoord |
The documentation for this struct was generated from the following file: