Vertex for geometry.
More...
#include <kanzi/core.ui/graphics2d/geometry.hpp>
◆ Vertex() [1/2]
kanzi::Geometry::Vertex::Vertex |
( |
| ) |
|
|
explicitdefault |
◆ Vertex() [2/2]
kanzi::Geometry::Vertex::Vertex |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
s, |
|
|
float |
t |
|
) |
| |
|
inlineexplicit |
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()
void kanzi::Geometry::Vertex::setPosition |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
|
inline |
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()
static ptrdiff_t kanzi::Geometry::Vertex::getPositionOffset |
( |
| ) |
|
|
inlinestatic |
Gets the offset for the position.
- Returns
- Position offset.
◆ getTexcoordOffset()
static ptrdiff_t kanzi::Geometry::Vertex::getTexcoordOffset |
( |
| ) |
|
|
inlinestatic |
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: