cocos2d-x  3.0Beta0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Renderer Class Reference

#include <CCRenderer.h>

Public Member Functions

 Renderer ()
 ~Renderer ()
void initGLView ()
void addCommand (RenderCommand *command)
local addCommand ( local command)
void addCommand (RenderCommand *command, int renderQueue)
local addCommand ( local command, local renderQueue)
void pushGroup (int renderQueueID)
local pushGroup ( local renderQueueID)
void popGroup ()
int createRenderQueue ()
void render ()

Static Public Attributes

static const int VBO_SIZE = 65536 / 6
var VBO_SIZE = 65536 / 6
local VBO_SIZE = 65536 / 6

Protected Member Functions

void setupIndices ()
local setupIndices ()
void setupBuffer ()
void setupVBOAndVAO ()
void setupVBO ()
void mapBuffers ()
void drawBatchedQuads ()
void flush ()

Protected Attributes

std::stack< int > _commandGroupStack
std::stack< RenderStackElement_renderStack
var _renderStack
local _renderStack
std::vector< RenderQueue_renderGroups
var _renderGroups
local _renderGroups
int _lastMaterialID
var _lastMaterialID
local _lastMaterialID
size_t _firstCommand
var _firstCommand
local _firstCommand
size_t _lastCommand
var _lastCommand
local _lastCommand
V3F_C4B_T2F_Quad _quads [VBO_SIZE]
local _quads ()
GLushort _indices [6 *VBO_SIZE]
var _indices ()
local _indices ()
GLuint _quadVAO
GLuint _buffersVBO [2]
var _buffersVBO ()
local _buffersVBO ()
int _numQuads
bool _glViewAssigned
var _glViewAssigned
local _glViewAssigned

Constructor & Destructor Documentation

Renderer ( )
var Renderer ( )
local Renderer ( )
~Renderer ( )
var ~Renderer ( )
local ~Renderer ( )

Member Function Documentation

void addCommand ( RenderCommand command)
var addCommand ( var  command)
local addCommand ( local  command)
void addCommand ( RenderCommand command,
int  renderQueue 
)
var addCommand ( var  command,
var  renderQueue 
)
local addCommand ( local  command,
local  renderQueue 
)
int createRenderQueue ( )
var createRenderQueue ( )
local createRenderQueue ( )
void drawBatchedQuads ( )
protected
var drawBatchedQuads ( )
protected
local drawBatchedQuads ( )
protected
void flush ( )
protected
var flush ( )
protected
local flush ( )
protected
void initGLView ( )
var initGLView ( )
local initGLView ( )
void mapBuffers ( )
protected
var mapBuffers ( )
protected
local mapBuffers ( )
protected
void popGroup ( )
var popGroup ( )
local popGroup ( )
void pushGroup ( int  renderQueueID)
var pushGroup ( var  renderQueueID)
local pushGroup ( local  renderQueueID)
void render ( )
var render ( )
local render ( )
void setupBuffer ( )
protected
var setupBuffer ( )
protected
local setupBuffer ( )
protected
void setupIndices ( )
protected
var setupIndices ( )
protected
local setupIndices ( )
protected
void setupVBO ( )
protected
var setupVBO ( )
protected
local setupVBO ( )
protected
void setupVBOAndVAO ( )
protected
var setupVBOAndVAO ( )
protected
local setupVBOAndVAO ( )
protected

Member Data Documentation

GLuint _buffersVBO[2]
protected
GLuint _buffersVBO[2]
protected
GLuint _buffersVBO[2]
protected
std::stack<int> _commandGroupStack
protected
var _commandGroupStack
protected
local _commandGroupStack
protected
size_t _firstCommand
protected
var _firstCommand
protected
local _firstCommand
protected
bool _glViewAssigned
protected
var _glViewAssigned
protected
local _glViewAssigned
protected
GLushort _indices[6 *VBO_SIZE]
protected
GLushort _indices[6 *VBO_SIZE]
protected
GLushort _indices[6 *VBO_SIZE]
protected
size_t _lastCommand
protected
var _lastCommand
protected
local _lastCommand
protected
int _lastMaterialID
protected
var _lastMaterialID
protected
local _lastMaterialID
protected
int _numQuads
protected
var _numQuads
protected
local _numQuads
protected
V3F_C4B_T2F_Quad _quads[VBO_SIZE]
protected
V3F_C4B_T2F_Quad _quads[VBO_SIZE]
protected
V3F_C4B_T2F_Quad _quads[VBO_SIZE]
protected
GLuint _quadVAO
protected
var _quadVAO
protected
local _quadVAO
protected
std::vector<RenderQueue>
_renderGroups
protected
var _renderGroups
protected
local _renderGroups
protected
std::stack<RenderStackElement>
_renderStack
protected
var _renderStack
protected
local _renderStack
protected
const int VBO_SIZE = 65536 / 6
static
var VBO_SIZE = 65536 / 6
static
local VBO_SIZE = 65536 / 6
static

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