GL geometry with set size. More...
#include <kanzi/core.ui/platform/graphics_backend/gl/geometry_gl.hpp>
Public Member Functions | |
| GeometryGlBuffer () | |
| Default constructor. More... | |
| const float * | getTexcoordData () const override |
| GeometryGl::getTexcoordData() implementation. More... | |
| const float * | getVertexData () const override |
| GeometryGl::getVertexData() implementation. More... | |
Public Member Functions inherited from kanzi::GeometryGl | |
| GeometryGl (size_t vertex_count) | |
| Default constructor. More... | |
| size_t | getVertexCount () const |
| Get vertex count. More... | |
Public Member Functions inherited from kanzi::Geometry | |
| virtual | ~Geometry () |
| Need virtual destructor, later inherited by classes with virtuals. More... | |
Static Public Attributes | |
| static const size_t | POSITION_SIZE |
| Size of one vertex in floats. More... | |
| static const size_t | TEXCOORD_SIZE |
| Size of one texcoord in floats. More... | |
| static const size_t | VERTEX_SIZE |
| Size of one vertex in floats. More... | |
Protected Member Functions | |
| void | assignVertex (size_t index, float x, float y, float s, float t) |
| Assign a vertex. More... | |
| float * | getTexcoordDataInternal () |
| Internal accessor to texcoord data. More... | |
| const float * | getTexcoordDataInternal () const |
| Internal accessor to texcoord data (const version). More... | |
| float * | getVertexDataInternal () |
| Internal accessor to vertex data. More... | |
| const float * | getVertexDataInternal () const |
| Internal accessor to vertex data (const version). More... | |
Protected Member Functions inherited from kanzi::GeometryGl | |
| void | setVertexCount (size_t vertex_count) |
| Set vertex count. More... | |
GL geometry with set size.
|
inlineexplicit |
Default constructor.
|
inlineoverridevirtual |
GeometryGl::getVertexData() implementation.
Implements kanzi::GeometryGl.
|
inlineoverridevirtual |
GeometryGl::getTexcoordData() implementation.
Implements kanzi::GeometryGl.
|
inlineprotected |
Assign a vertex.
To be used internally in functions that write vertices into the vertex buffer.
| index | Current index. |
| x | X coordinate. |
| y | Y coordinate. |
| s | S texture coordinate. |
| t | T texture coordinate. |
|
inlineprotected |
Internal accessor to vertex data.
|
inlineprotected |
Internal accessor to vertex data (const version).
|
inlineprotected |
Internal accessor to texcoord data.
|
inlineprotected |
Internal accessor to texcoord data (const version).
|
static |
Size of one vertex in floats.
|
static |
Size of one texcoord in floats.
|
static |
Size of one vertex in floats.