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 end ()
 
void initBatchSize ()
 
void drawTriangle (size_t v_index, const glm::vec3 &depth, const glm::vec3 &cpuRotation, const Color &color)
 
void draw (size_t v_index, const glm::vec2 &rectSize, const glm::vec3 &bodyCenter, const glm::vec3 &mRotation, const Color &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 &bodyCenter, const glm::vec3 &mRotation, const Color &color)
 
void drawSphere (size_t v_index, const glm::vec3 &sphereSize, const glm::vec3 &bodyCenter, const glm::vec3 &mRotation, const Color &color)
 
void renderBatch (GLSLProgram *glsl_program)
 
void dispose ()
 
- Public Member Functions inherited from PlaneRenderer
void init ()
 
void begin ()
 
void end ()
 
void initTriangleBatch (size_t mSize)
 
void initQuadBatch (size_t mSize)
 
void initBoxBatch (size_t mSize)
 
void initSphereBatch (size_t mSize)
 
void createRenderBatches ()
 

Public Attributes

std::vector< LightVertexsphereVertices
 
std::vector< GLuint > sphereIndices
 
- Public Attributes inherited from PlaneRenderer
GLuint _vboInstances
 
size_t _glyphs_size = 0
 
size_t _triangleGlyphs_size = 0
 
size_t _boxGlyphs_size = 0
 
size_t _sphereGlyphs_size = 0
 

Member Data Documentation

◆ sphereIndices

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

◆ sphereVertices

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

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