kanzi::GeometryGlBuffer< MaxVertexCount > Class Template Reference

GL geometry with set size. More...

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

Inheritance diagram for kanzi::GeometryGlBuffer< MaxVertexCount >:
kanzi::GeometryGl kanzi::Geometry

Public Member Functions

 GeometryGlBuffer ()
 Default constructor. More...
 
virtual const float * getVertexData () const KZ_OVERRIDE
 GeometryGl::getVertexData() implementation. More...
 
virtual const float * getTexcoordData () const KZ_OVERRIDE
 GeometryGl::getTexcoordData() 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 * getVertexDataInternal ()
 Internal accessor to vertex data. More...
 
const float * getVertexDataInternal () const
 Internal accessor to vertex data (const version). More...
 
float * getTexcoordDataInternal ()
 Internal accessor to texcoord data. More...
 
const float * getTexcoordDataInternal () const
 Internal accessor to texcoord data (const version). More...
 
- Protected Member Functions inherited from kanzi::GeometryGl
void setVertexCount (size_t vertex_count)
 Set vertex count. More...
 

Detailed Description

template<size_t MaxVertexCount>
class kanzi::GeometryGlBuffer< MaxVertexCount >

GL geometry with set size.

Constructor & Destructor Documentation

template<size_t MaxVertexCount>
kanzi::GeometryGlBuffer< MaxVertexCount >::GeometryGlBuffer ( )
inlineexplicit

Default constructor.

Member Function Documentation

template<size_t MaxVertexCount>
virtual const float* kanzi::GeometryGlBuffer< MaxVertexCount >::getVertexData ( ) const
inlinevirtual

GeometryGl::getVertexData() implementation.

Implements kanzi::GeometryGl.

template<size_t MaxVertexCount>
virtual const float* kanzi::GeometryGlBuffer< MaxVertexCount >::getTexcoordData ( ) const
inlinevirtual

GeometryGl::getTexcoordData() implementation.

Implements kanzi::GeometryGl.

template<size_t MaxVertexCount>
void kanzi::GeometryGlBuffer< MaxVertexCount >::assignVertex ( size_t  index,
float  x,
float  y,
float  s,
float  t 
)
inlineprotected

Assign a vertex.

To be used internally in functions that write vertices into the vertex buffer.

Parameters
countTotal number of elements at end.
indexCurrent index.
xX coordinate.
yY coordinate.
sS texture coordinate.
tT texture coordinate.
template<size_t MaxVertexCount>
float* kanzi::GeometryGlBuffer< MaxVertexCount >::getVertexDataInternal ( )
inlineprotected

Internal accessor to vertex data.

template<size_t MaxVertexCount>
const float* kanzi::GeometryGlBuffer< MaxVertexCount >::getVertexDataInternal ( ) const
inlineprotected

Internal accessor to vertex data (const version).

template<size_t MaxVertexCount>
float* kanzi::GeometryGlBuffer< MaxVertexCount >::getTexcoordDataInternal ( )
inlineprotected

Internal accessor to texcoord data.

template<size_t MaxVertexCount>
const float* kanzi::GeometryGlBuffer< MaxVertexCount >::getTexcoordDataInternal ( ) const
inlineprotected

Internal accessor to texcoord data (const version).

Member Data Documentation

template<size_t MaxVertexCount>
const size_t kanzi::GeometryGlBuffer< MaxVertexCount >::POSITION_SIZE
static

Size of one vertex in floats.

template<size_t MaxVertexCount>
const size_t kanzi::GeometryGlBuffer< MaxVertexCount >::TEXCOORD_SIZE
static

Size of one texcoord in floats.

template<size_t MaxVertexCount>
const size_t kanzi::GeometryGlBuffer< MaxVertexCount >::VERTEX_SIZE
static

Size of one vertex in floats.


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