TazGraph Project v0.1.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
LightRenderer Class Reference
Inheritance diagram for LightRenderer:
Inheritance graph
[legend]
Collaboration diagram for LightRenderer:
Collaboration graph
[legend]

Public Member Functions

void init ()
 
void begin ()
 
void initBatch (Taz::RenderBatch &batch)
 
void drawTriangle (size_t v_index, const glm::vec3 &position, const glm::vec3 &size, const glm::vec3 &cpuRotation, const TazColor &color)
 
void draw (size_t v_index, const glm::vec2 &rectSize, const glm::vec3 &position, const glm::vec3 &mRotation, const TazColor &color)
 draws are needed to convert the pos and size to vertices
 
void drawBox (size_t v_index, const glm::vec3 &boxSize, const glm::vec3 &position, const glm::vec3 &mRotation, const TazColor &color)
 
void drawSphere (size_t v_index, const glm::vec3 &sphereSize, const glm::vec3 &position, const glm::vec3 &mRotation, const TazColor &color)
 
void endBatch (const Taz::RenderBatch &batch) override
 
void dispose ()
 

Public Attributes

std::vector< TazLightVertexsphereVertices
 
std::vector< GLuint > sphereIndices
 
- Public Attributes inherited from Taz::Renderer
GLuint _vboInstances
 
size_t currentBatchIndex = 0
 

Member Function Documentation

◆ begin()

void LightRenderer::begin ( )
virtual

Reimplemented from Taz::Renderer.

◆ endBatch()

void LightRenderer::endBatch ( const Taz::RenderBatch batch)
overridevirtual

Implements Taz::Renderer.

◆ init()

void LightRenderer::init ( )
virtual

Reimplemented from Taz::Renderer.

Member Data Documentation

◆ sphereIndices

std::vector<GLuint> LightRenderer::sphereIndices
Initial value:
= {
}

◆ sphereVertices

std::vector<TazLightVertex> LightRenderer::sphereVertices
Initial value:
= {
}

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