Vertex for geometry.
More...
#include <kanzi/core.ui/graphics2d/geometry.hpp>
kanzi::Geometry::Vertex::Vertex |
( |
| ) |
|
|
explicitdefault |
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. |
Vector3 kanzi::Geometry::Vertex::getPosition |
( |
| ) |
const |
|
inline |
Gets the position.
- Returns
- Position vector.
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. |
Vector2 kanzi::Geometry::Vertex::getTexcoord |
( |
| ) |
const |
|
inline |
Gets the texcoord.
- Returns
- Texcoord vector.
static ptrdiff_t kanzi::Geometry::Vertex::getPositionOffset |
( |
| ) |
|
|
inlinestatic |
Gets the offset for the position.
- Returns
- Position offset.
static ptrdiff_t kanzi::Geometry::Vertex::getTexcoordOffset |
( |
| ) |
|
|
inlinestatic |
Gets the offset for the texture coordinate.
- Returns
- Texture coordinate offset.
Vector3 kanzi::Geometry::Vertex::m_position |
Vector2 kanzi::Geometry::Vertex::m_texcoord |
The documentation for this struct was generated from the following file: