#include <CCRenderer.h>
Public Member Functions | |
Renderer () | |
Constructor. More... | |
~Renderer () | |
Destructor. More... | |
~Renderer () | |
Destructor. More... | |
~Renderer () | |
Destructor. More... | |
void | initGLView () |
var | initGLView () |
local | initGLView () |
void | addCommand (RenderCommand *command) |
Adds a RenderComamnd into the renderer. More... | |
var | addCommand ( var command) |
Adds a RenderComamnd into the renderer. More... | |
local | addCommand ( local command) |
Adds a RenderComamnd into the renderer. More... | |
void | addCommand (RenderCommand *command, int renderQueue) |
Adds a RenderComamnd into the renderer specifying a particular render queue ID. More... | |
var | addCommand ( var command, var renderQueue) |
Adds a RenderComamnd into the renderer specifying a particular render queue ID. More... | |
local | addCommand ( local command, local renderQueue) |
Adds a RenderComamnd into the renderer specifying a particular render queue ID. More... | |
void | pushGroup (int renderQueueID) |
Pushes a group into the render queue. More... | |
var | pushGroup ( var renderQueueID) |
Pushes a group into the render queue. More... | |
local | pushGroup ( local renderQueueID) |
Pushes a group into the render queue. More... | |
void | popGroup () |
Pops a group from the render queue. More... | |
int | createRenderQueue () |
Creates a render queue and returns its Id. More... | |
var | createRenderQueue () |
Creates a render queue and returns its Id. More... | |
local | createRenderQueue () |
Creates a render queue and returns its Id. More... | |
void | render () |
Renders into the GLView all the queued RenderCommand objects. More... | |
void | clean () |
Cleans all RenderCommand s in the queue. More... | |
void | clear () |
Clear GL buffer and screen. More... | |
var | clear () |
Clear GL buffer and screen. More... | |
local | clear () |
Clear GL buffer and screen. More... | |
void | setClearColor (const Color4F &clearColor) |
set color for clear screen More... | |
var | setClearColor ( var clearColor) |
set color for clear screen More... | |
local | setClearColor ( local clearColor) |
set color for clear screen More... | |
ssize_t | getDrawnBatches () const |
var | getDrawnBatches () |
local | getDrawnBatches () |
void | addDrawnBatches (ssize_t number) |
local | addDrawnBatches ( local number) |
ssize_t | getDrawnVertices () const |
var | getDrawnVertices () |
local | getDrawnVertices () |
void | addDrawnVertices (ssize_t number) |
var | addDrawnVertices ( var number) |
local | addDrawnVertices ( local number) |
void | clearDrawStats () |
var | clearDrawStats () |
local | clearDrawStats () |
void | setDepthTest (bool enable) |
Enable/Disable depth test For 3D object depth test is enabled by default and can not be changed For 2D object depth test is disabled by default. More... | |
GroupCommandManager * | getGroupCommandManager () const |
bool | checkVisibility (const Mat4 &transform, const Size &size) |
returns whether or not a rectangle is visible or not More... | |
var | checkVisibility ( var transform, var size) |
returns whether or not a rectangle is visible or not More... | |
local | checkVisibility ( local transform, local size) |
returns whether or not a rectangle is visible or not More... | |
Static Public Attributes | |
static const int | VBO_SIZE = 65536 |
The max number of vertices in a vertex buffer object. More... | |
var | VBO_SIZE = 65536 |
The max number of vertices in a vertex buffer object. More... | |
local | VBO_SIZE = 65536 |
The max number of vertices in a vertex buffer object. More... | |
static const int | INDEX_VBO_SIZE = VBO_SIZE * 6 / 4 |
The max numer of indices in a index buffer. More... | |
var | INDEX_VBO_SIZE = VBO_SIZE * 6 / 4 |
The max numer of indices in a index buffer. More... | |
local | INDEX_VBO_SIZE = VBO_SIZE * 6 / 4 |
The max numer of indices in a index buffer. More... | |
static const int | BATCH_QUADCOMMAND_RESEVER_SIZE = 64 |
The rendercommands which can be batched will be saved into a list, this is the reversed size of this list. More... | |
var | BATCH_QUADCOMMAND_RESEVER_SIZE = 64 |
The rendercommands which can be batched will be saved into a list, this is the reversed size of this list. More... | |
local | BATCH_QUADCOMMAND_RESEVER_SIZE = 64 |
The rendercommands which can be batched will be saved into a list, this is the reversed size of this list. More... | |
static const int | MATERIAL_ID_DO_NOT_BATCH = 0 |
Reserved for material id, which means that the command could not be batched. More... | |
var | MATERIAL_ID_DO_NOT_BATCH = 0 |
Reserved for material id, which means that the command could not be batched. More... | |
local | MATERIAL_ID_DO_NOT_BATCH = 0 |
Reserved for material id, which means that the command could not be batched. More... | |
Renderer | ( | ) |
Constructor.
var Renderer | ( | ) |
Constructor.
local Renderer | ( | ) |
Constructor.
~Renderer | ( | ) |
Destructor.
var ~Renderer | ( | ) |
Destructor.
local ~Renderer | ( | ) |
Destructor.
void addCommand | ( | RenderCommand * | command | ) |
Adds a RenderComamnd
into the renderer.
var addCommand | ( | var | command | ) |
Adds a RenderComamnd
into the renderer.
local addCommand | ( | local | command | ) |
Adds a RenderComamnd
into the renderer.
void addCommand | ( | RenderCommand * | command, |
int | renderQueue | ||
) |
Adds a RenderComamnd
into the renderer specifying a particular render queue ID.
var addCommand | ( | var | command, |
var | renderQueue | ||
) |
Adds a RenderComamnd
into the renderer specifying a particular render queue ID.
local addCommand | ( | local | command, |
local | renderQueue | ||
) |
Adds a RenderComamnd
into the renderer specifying a particular render queue ID.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
returns whether or not a rectangle is visible or not
var checkVisibility | ( | var | transform, |
var | size | ||
) |
returns whether or not a rectangle is visible or not
local checkVisibility | ( | local | transform, |
local | size | ||
) |
returns whether or not a rectangle is visible or not
void clean | ( | ) |
Cleans all RenderCommand
s in the queue.
var clean | ( | ) |
Cleans all RenderCommand
s in the queue.
local clean | ( | ) |
Cleans all RenderCommand
s in the queue.
void clear | ( | ) |
Clear GL buffer and screen.
var clear | ( | ) |
Clear GL buffer and screen.
local clear | ( | ) |
Clear GL buffer and screen.
|
inline |
|
inline |
|
inline |
int createRenderQueue | ( | ) |
Creates a render queue and returns its Id.
var createRenderQueue | ( | ) |
Creates a render queue and returns its Id.
local createRenderQueue | ( | ) |
Creates a render queue and returns its Id.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void initGLView | ( | ) |
var initGLView | ( | ) |
local initGLView | ( | ) |
|
protected |
|
protected |
|
protected |
void popGroup | ( | ) |
Pops a group from the render queue.
var popGroup | ( | ) |
Pops a group from the render queue.
local popGroup | ( | ) |
Pops a group from the render queue.
|
protected |
|
protected |
|
protected |
void pushGroup | ( | int | renderQueueID | ) |
Pushes a group into the render queue.
var pushGroup | ( | var | renderQueueID | ) |
Pushes a group into the render queue.
local pushGroup | ( | local | renderQueueID | ) |
Pushes a group into the render queue.
void render | ( | ) |
Renders into the GLView all the queued RenderCommand
objects.
var render | ( | ) |
Renders into the GLView all the queued RenderCommand
objects.
local render | ( | ) |
Renders into the GLView all the queued RenderCommand
objects.
void setClearColor | ( | const Color4F & | clearColor | ) |
set color for clear screen
var setClearColor | ( | var | clearColor | ) |
set color for clear screen
local setClearColor | ( | local | clearColor | ) |
set color for clear screen
void setDepthTest | ( | bool | enable | ) |
Enable/Disable depth test For 3D object depth test is enabled by default and can not be changed For 2D object depth test is disabled by default.
var setDepthTest | ( | var | enable | ) |
Enable/Disable depth test For 3D object depth test is enabled by default and can not be changed For 2D object depth test is disabled by default.
local setDepthTest | ( | local | enable | ) |
Enable/Disable depth test For 3D object depth test is enabled by default and can not be changed For 2D object depth test is disabled by default.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
The rendercommands which can be batched will be saved into a list, this is the reversed size of this list.
|
static |
The rendercommands which can be batched will be saved into a list, this is the reversed size of this list.
|
static |
The rendercommands which can be batched will be saved into a list, this is the reversed size of this list.
|
static |
The max numer of indices in a index buffer.
|
static |
The max numer of indices in a index buffer.
|
static |
The max numer of indices in a index buffer.
|
static |
Reserved for material id, which means that the command could not be batched.
|
static |
Reserved for material id, which means that the command could not be batched.
|
static |
Reserved for material id, which means that the command could not be batched.
|
static |
The max number of vertices in a vertex buffer object.
|
static |
The max number of vertices in a vertex buffer object.
|
static |
The max number of vertices in a vertex buffer object.