The GemRenderer class renders all of our gems. For performance reasons the GemRenderer packs all gems and fakes instanced drawing.
More...
#include <gemrenderer.h>
The GemRenderer class renders all of our gems. For performance reasons the GemRenderer packs all gems and fakes instanced drawing.
GemRenderer::GemRenderer |
( |
| ) |
|
GemRenderer::~GemRenderer |
( |
| ) |
|
void GemRenderer::cleanup |
( |
QOpenGLFunctions & |
gl | ) |
|
Cleans up all gpu resources.
- Parameters
-
gl | QOpenGLFunctions used to do gl-calls |
void GemRenderer::initialize |
( |
QOpenGLFunctions & |
gl | ) |
|
Initializes all gpu resources.
- Parameters
-
gl | QOpenGLFunctions used to do gl-calls |
void GemRenderer::paint |
( |
QOpenGLFunctions & |
gl, |
|
|
QOpenGLShaderProgram & |
program |
|
) |
| |
paint Paints all gems using faked instanced drawing.
- Parameters
-
gl | QOpenGLFunctions used to do gl-calls |
program | The program that is used for drawing gems. |
void GemRenderer::setSceneExtent |
( |
float |
extent | ) |
|
Sets the scene extent, which is required to encode gem positions into byte textures.
- Parameters
-
void GemRenderer::updateData |
( |
QOpenGLFunctions & |
gl | ) |
|
|
protected |
Updates previous added gem using updateGem()
- Parameters
-
gl | QOpenGLFunctions used to do gl-calls |
Save given gem in order to update it later.
- Parameters
-
gem | The gem that should be updated (or added). |
- See also
- updateData()
bool GemRenderer::m_areFloatTexturesAvailable |
|
protected |
QHash<GemType, GemRenderData *>* GemRenderer::m_gemBuffersTex |
|
protected |
bool GemRenderer::m_isGemBufferUpdateRequired |
|
protected |
bool GemRenderer::m_isGemDataBufferInvalid |
|
protected |
bool GemRenderer::m_isInitialized |
|
protected |
QList<GemDataInfo *>* GemRenderer::m_newGems |
|
protected |
float GemRenderer::m_sceneExtent |
|
protected |
The documentation for this class was generated from the following files: