Base class of the RenderCommand
hierarchy.
More...
Inherited by BatchCommand, CustomCommand, GroupCommand, MeshCommand, PrimitiveCommand, QuadCommand, and TrianglesCommand.
Base class of the RenderCommand
hierarchy.
The Renderer
knows how to render RenderCommands
objects.
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. |
float getGlobalOrder |
( |
| ) |
const |
|
inline |
Returns the Command type.
Returns the Command type.
Returns the Command type.
bool isTransparent |
( |
| ) |
const |
|
inline |
Retruns whether is transparent.
Retruns whether is transparent.
Retruns whether is transparent.
void setTransparent |
( |
bool |
isTransparent | ) |
|
|
inline |
var setTransparent |
( |
var |
isTransparent | ) |
|
|
inline |
local setTransparent |
( |
local |
isTransparent | ) |
|
|
inline |
void setSkipBatching |
( |
bool |
value | ) |
|
|
inline |
var setSkipBatching |
( |
var |
value | ) |
|
|
inline |
local setSkipBatching |
( |
local |
value | ) |
|
|
inline |
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.
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.
Get the depth by current model view matrix.
Get the depth by current model view matrix.
Get the depth by current model view matrix.
The documentation for this class was generated from the following file: