kanzi::GeometryGl Class Referenceabstract

Base GL geometry. More...

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

Inheritance diagram for kanzi::GeometryGl:
kanzi::Geometry kanzi::GeometryGlBuffer< 25 > kanzi::GeometryGlBuffer< 4 > kanzi::GeometryGlBuffer< MaxVertexCount > kanzi::GeometryFrame kanzi::GeometryQuad

Public Member Functions

 GeometryGl (size_t vertex_count)
 Default constructor. More...
 
virtual const float * getVertexData () const =0
 Return vertex data. More...
 
virtual const float * getTexcoordData () const =0
 Return texcoord data. 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...
 

Protected Member Functions

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

Detailed Description

Base GL geometry.

Constructor & Destructor Documentation

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

Default constructor.

Member Function Documentation

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 >.

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 >.

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

Get vertex count.

Returns
Number of vertices.
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: