Base class of the RenderCommand
hierarchy.
More...
#include <CCRenderCommand.h>
Base class of the RenderCommand
hierarchy.
The Renderer
knows how to render RenderCommands
objects.
Enum the type of render command.
Enumerator |
---|
UNKNOWN_COMMAND |
Reserved type.
|
QUAD_COMMAND |
Quad command, used for draw quad.
|
CUSTOM_COMMAND |
Custom command, used for calling callback for rendering.
|
BATCH_COMMAND |
Batch command, used for draw batches in texture atlas.
|
GROUP_COMMAND |
Group command, which can group command in a tree hierarchy.
|
MESH_COMMAND |
Mesh command, used to draw 3D meshes.
|
PRIMITIVE_COMMAND |
Primitive command, used to draw primitives such as lines, points and triangles.
|
TRIANGLES_COMMAND |
Triangles command, used to draw triangles.
|
Enum the type of render command.
Enumerator |
---|
UNKNOWN_COMMAND |
Reserved type.
|
QUAD_COMMAND |
Quad command, used for draw quad.
|
CUSTOM_COMMAND |
Custom command, used for calling callback for rendering.
|
BATCH_COMMAND |
Batch command, used for draw batches in texture atlas.
|
GROUP_COMMAND |
Group command, which can group command in a tree hierarchy.
|
MESH_COMMAND |
Mesh command, used to draw 3D meshes.
|
PRIMITIVE_COMMAND |
Primitive command, used to draw primitives such as lines, points and triangles.
|
TRIANGLES_COMMAND |
Triangles command, used to draw triangles.
|
Enum the type of render command.
Enumerator |
---|
UNKNOWN_COMMAND |
Reserved type.
|
QUAD_COMMAND |
Quad command, used for draw quad.
|
CUSTOM_COMMAND |
Custom command, used for calling callback for rendering.
|
BATCH_COMMAND |
Batch command, used for draw batches in texture atlas.
|
GROUP_COMMAND |
Group command, which can group command in a tree hierarchy.
|
MESH_COMMAND |
Mesh command, used to draw 3D meshes.
|
PRIMITIVE_COMMAND |
Primitive command, used to draw primitives such as lines, points and triangles.
|
TRIANGLES_COMMAND |
Triangles command, used to draw triangles.
|
Get the depth by current model view matrix.
Get the depth by current model view matrix.
Get the depth by current model view matrix.
float getGlobalOrder |
( |
| ) |
const |
|
inline |
Returns the Command type.
Returns the Command type.
Returns the Command type.
void init |
( |
float |
globalZOrder, |
|
|
const Mat4 & |
modelViewTransform, |
|
|
uint32_t |
flags |
|
) |
| |
Init function, will be called by all the render commands.
- Parameters
-
globalZOrder | The global order of command, used for rendercommand sorting. |
modelViewTransform | Modelview matrix when submitting the render command. |
flags | Flag used to indicate whether the command should be draw at 3D mode or not. |
var init |
( |
var |
globalZOrder, |
|
|
var |
modelViewTransform, |
|
|
var |
flags |
|
) |
| |
Init function, will be called by all the render commands.
- Parameters
-
globalZOrder | The global order of command, used for rendercommand sorting. |
modelViewTransform | Modelview matrix when submitting the render command. |
flags | Flag used to indicate whether the command should be draw at 3D mode or not. |
local init |
( |
local |
globalZOrder, |
|
|
local |
modelViewTransform, |
|
|
local |
flags |
|
) |
| |
Init function, will be called by all the render commands.
- Parameters
-
globalZOrder | The global order of command, used for rendercommand sorting. |
modelViewTransform | Modelview matrix when submitting the render command. |
flags | Flag used to indicate whether the command should be draw at 3D mode or not. |
Whether the command should be rendered at 3D mode.
Whether the command should be rendered at 3D mode.
Whether the command should be rendered at 3D mode.
bool isSkipBatching |
( |
| ) |
const |
|
inline |
Get skip batching status, if a rendering is skip batching, it will be forced to be rendering seperately.
Get skip batching status, if a rendering is skip batching, it will be forced to be rendering seperately.
Get skip batching status, if a rendering is skip batching, it will be forced to be rendering seperately.
bool isTransparent |
( |
| ) |
const |
|
inline |
Retruns whether is transparent.
Retruns whether is transparent.
Retruns whether is transparent.
Set the command rendered in 3D mode or not.
Set the command rendered in 3D mode or not.
local set3D |
( |
local |
value | ) |
|
|
inline |
Set the command rendered in 3D mode or not.
void setSkipBatching |
( |
bool |
value | ) |
|
|
inline |
var setSkipBatching |
( |
var |
value | ) |
|
|
inline |
local setSkipBatching |
( |
local |
value | ) |
|
|
inline |
void setTransparent |
( |
bool |
isTransparent | ) |
|
|
inline |
var setTransparent |
( |
var |
isTransparent | ) |
|
|
inline |
local setTransparent |
( |
local |
isTransparent | ) |
|
|
inline |
Depth from the model view matrix.
Depth from the model view matrix.
Depth from the model view matrix.
Commands are sort by global Z order.
Commands are sort by global Z order.
Commands are sort by global Z order.
Is the command been rendered on 3D pass.
Is the command been rendered on 3D pass.
Is the command been rendered on 3D pass.
QuadCommand and TrianglesCommand could be auto batched if there material ID is the same, however, if a command is skip batching, it would be forced to draw in a seperate function call, and break the batch.
QuadCommand and TrianglesCommand could be auto batched if there material ID is the same, however, if a command is skip batching, it would be forced to draw in a seperate function call, and break the batch.
QuadCommand and TrianglesCommand could be auto batched if there material ID is the same, however, if a command is skip batching, it would be forced to draw in a seperate function call, and break the batch.
Type used in order to avoid dynamic cast, faster.
Type used in order to avoid dynamic cast, faster.
Type used in order to avoid dynamic cast, faster.
The documentation for this class was generated from the following file: