Kanzi Framework  3.9.0
Kanzi Engine API
kanzi::GeometryQuad Class Reference

Renderable quad. More...

#include <kanzi/core.ui/platform/graphics_backend/gl/geometry_quad.hpp>

Inheritance diagram for kanzi::GeometryQuad:
[legend]

Public Member Functions

 GeometryQuad (const QuadDescription &quad)
 Constructor. More...
 
 GeometryQuad (const QuadDescription &quad, Vector2 tiling)
 Constructor. More...
 
void setGeometry (const QuadDescription &quad, Vector2 tiling)
 Create geometry based on tiling. More...
 
- Public Member Functions inherited from kanzi::GeometryGlBuffer< 4 >
 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...
 

Additional Inherited Members

- Static Public Attributes inherited from kanzi::GeometryGlBuffer< 4 >
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 inherited from kanzi::GeometryGlBuffer< 4 >
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...
 

Detailed Description

Renderable quad.

Constructor & Destructor Documentation

◆ GeometryQuad() [1/2]

kanzi::GeometryQuad::GeometryQuad ( const QuadDescription quad)
explicit

Constructor.

Parameters
quadQuad to extract geometry from.

◆ GeometryQuad() [2/2]

kanzi::GeometryQuad::GeometryQuad ( const QuadDescription quad,
Vector2  tiling 
)
explicit

Constructor.

Parameters
quadQuad to extract geometry from.
tilingTiling for the texture coordinates.

Member Function Documentation

◆ setGeometry()

void kanzi::GeometryQuad::setGeometry ( const QuadDescription quad,
Vector2  tiling 
)

Create geometry based on tiling.

Called upon construction, but can also be called to replace existing geometry.

Parameters
quadQuad to read.
tilingTiling for the texture coordinates.

The documentation for this class was generated from the following file: