#include <CCRenderer.h>
Public Member Functions | |
| Renderer () | |
| ~Renderer () | |
| void | initGLView () |
| void | addCommand (RenderCommand *command) |
| void | addCommand (RenderCommand *command, int renderQueue) |
| void | pushGroup (int renderQueueID) |
| void | popGroup () |
| int | createRenderQueue () |
| void | render () |
Static Public Attributes | |
| static const int | VBO_SIZE = 65536 / 6 |
| static const int | BATCH_QUADCOMMAND_RESEVER_SIZE = 64 |
Protected Member Functions | |
| void | setupIndices () |
| void | setupBuffer () |
| void | setupVBOAndVAO () |
| void | setupVBO () |
| void | mapBuffers () |
| void | drawBatchedQuads () |
| void | flush () |
| void | convertToWorldCoordinates (V3F_C4B_T2F_Quad *quads, ssize_t quantity, const kmMat4 &modelView) |
Protected Attributes | |
| std::stack< int > | _commandGroupStack |
| std::stack< RenderStackElement > | _renderStack |
| std::vector< RenderQueue > | _renderGroups |
| uint32_t | _lastMaterialID |
| std::vector< QuadCommand * > | _batchedQuadCommands |
| V3F_C4B_T2F_Quad | _quads [VBO_SIZE] |
| GLushort | _indices [6 *VBO_SIZE] |
| GLuint | _quadVAO |
| GLuint | _buffersVBO [2] |
| int | _numQuads |
| bool | _glViewAssigned |
| Renderer | ( | ) |
| ~Renderer | ( | ) |
| void addCommand | ( | RenderCommand * | command) |
| void addCommand | ( | RenderCommand * | command, |
| int | renderQueue | ||
| ) |
|
protected |
| int createRenderQueue | ( | ) |
|
protected |
|
protected |
| void initGLView | ( | ) |
|
protected |
| void popGroup | ( | ) |
| void pushGroup | ( | int | renderQueueID) |
| void render | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
static |