Hymn to Beauty
C++ 3D Engine
Video::Isocahedron Class Reference

An isocahedron used as proxy light geometry. More...

#include <Isocahedron.hpp>

Public Member Functions

 Isocahedron (LowLevelRenderer *lowLevelRenderer)
 Create new isocahedron. More...
 
 ~Isocahedron ()
 Destructor. More...
 
const VertexDescriptionGetVertexDescription () const
 Get the isocahedron's vertex description. More...
 
GeometryBindingGetGeometryBinding ()
 Get the geometry binding. More...
 
uint16_t GetIndexCount () const
 Get the number of indices in the geometry. More...
 
float GetError () const
 Get the error when compared to a sphere. More...
 

Detailed Description

An isocahedron used as proxy light geometry.

Constructor & Destructor Documentation

◆ Isocahedron()

Video::Isocahedron::Isocahedron ( LowLevelRenderer lowLevelRenderer)
explicit

Create new isocahedron.

Parameters
lowLevelRendererThe low-level renderer.
Todo:
Subdivide?

◆ ~Isocahedron()

Video::Isocahedron::~Isocahedron ( )

Destructor.

Member Function Documentation

◆ GetError()

float Video::Isocahedron::GetError ( ) const

Get the error when compared to a sphere.

Returns
The error.

◆ GetGeometryBinding()

GeometryBinding * Video::Isocahedron::GetGeometryBinding ( )

Get the geometry binding.

Returns
The geometry binding.

◆ GetIndexCount()

uint16_t Video::Isocahedron::GetIndexCount ( ) const

Get the number of indices in the geometry.

Returns
The number of indices in the geometry.

◆ GetVertexDescription()

const VertexDescription * Video::Isocahedron::GetVertexDescription ( ) const

Get the isocahedron's vertex description.

Returns
The vertex description.

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