Kanzi Framework  3.9.0
Kanzi Engine API
kanzi::GeometryGl Class Referenceabstract

Base GL geometry. More...

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

Inheritance diagram for kanzi::GeometryGl:
[legend]

Public Member Functions

 GeometryGl (size_t vertex_count)
 Default constructor. More...
 
virtual const float * getTexcoordData () const =0
 Return texcoord data. More...
 
size_t getVertexCount () const
 Get vertex count. More...
 
virtual const float * getVertexData () const =0
 Return vertex data. More...
 
- Public Member Functions inherited from kanzi::Geometry
virtual ~Geometry ()
 Need virtual destructor, later inherited by classes with virtuals. More...
 

Protected Member Functions

void setVertexCount (size_t vertex_count)
 Set vertex count. More...
 

Detailed Description

Base GL geometry.

Constructor & Destructor Documentation

◆ GeometryGl()

kanzi::GeometryGl::GeometryGl ( size_t  vertex_count)
inlineexplicit

Default constructor.

Member Function Documentation

◆ getVertexData()

virtual const float* kanzi::GeometryGl::getVertexData ( ) const
pure virtual

Return vertex data.

Returns
Data pointer.

Implemented in kanzi::GeometryGlBuffer< MaxVertexCount >, kanzi::GeometryGlBuffer< 25 >, and kanzi::GeometryGlBuffer< 4 >.

◆ getTexcoordData()

virtual const float* kanzi::GeometryGl::getTexcoordData ( ) const
pure virtual

Return texcoord data.

Returns
Data pointer.

Implemented in kanzi::GeometryGlBuffer< MaxVertexCount >, kanzi::GeometryGlBuffer< 25 >, and kanzi::GeometryGlBuffer< 4 >.

◆ getVertexCount()

size_t kanzi::GeometryGl::getVertexCount ( ) const
inline

Get vertex count.

Returns
Number of vertices.

◆ setVertexCount()

void kanzi::GeometryGl::setVertexCount ( size_t  vertex_count)
inlineprotected

Set vertex count.

Should only be used by inheriting classes when generating geometry.

Parameters
vertex_countNew vertex count.

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