Kanzi framework  3.9.1
Kanzi Engine API
kanzi::GeometryFrame Class Reference

Geometry representing a quad that has its center cut out. More...

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

Inheritance diagram for kanzi::GeometryFrame:
[legend]

Public Member Functions

 GeometryFrame (const FrameDescription &frame, Vector2 tiling)
 Constructor. More...
 
- Public Member Functions inherited from kanzi::GeometryGlBuffer< 25 >
 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...
 

Protected Member Functions

void addQuadDescription (size_t offset, const QuadDescription &quad, Vector2 tiling, bool duplicateFirstVertex, bool duplicateLastVertex)
 Add single quad description. More...
 
- Protected Member Functions inherited from kanzi::GeometryGlBuffer< 25 >
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...
 

Additional Inherited Members

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

Detailed Description

Geometry representing a quad that has its center cut out.

Constructor & Destructor Documentation

◆ GeometryFrame()

kanzi::GeometryFrame::GeometryFrame ( const FrameDescription frame,
Vector2  tiling 
)
explicit

Constructor.

Parameters
frameFrame description used to generate the geometry.
tilingTiling for the texture coordinates.

Member Function Documentation

◆ addQuadDescription()

void kanzi::GeometryFrame::addQuadDescription ( size_t  offset,
const QuadDescription quad,
Vector2  tiling,
bool  duplicateFirstVertex,
bool  duplicateLastVertex 
)
protected

Add single quad description.

Parameters
offsetVertex offset to add to.
quadQuad description to add.
tilingTiling for the texture coordinates.
duplicateFirstVertexTrue to duplicate first vertex.
duplicateLastVertexTrue to duplicate last vertex.

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