Command used to draw batches in one TextureAtlas.
More...
#include <CCBatchCommand.h>
|
| BatchCommand () |
| Constructor. More...
|
|
| ~BatchCommand () |
| Destructor. More...
|
|
void | init (float globalZOrder, GLProgram *shader, BlendFunc blendType, TextureAtlas *textureAtlas, const Mat4 &modelViewTransform, uint32_t flags) |
| Init the batch command. More...
|
|
local | init ( local globalZOrder, local shader, local blendType, local textureAtlas, local modelViewTransform, local flags) |
| Init the batch command. More...
|
|
void | init (float depth, GLProgram *shader, BlendFunc blendType, TextureAtlas *textureAtlas, const Mat4 &modelViewTransform) |
void | execute () |
| Execute the command, which will call openGL function to draw the texture atlas. More...
|
|
Public Member Functions inherited from RenderCommand |
void | init (float globalZOrder, const Mat4 &modelViewTransform, uint32_t flags) |
| Init function, will be called by all the render commands. More...
|
|
float | getGlobalOrder () const |
| Get global Z order. More...
|
|
Type | getType () const |
| Returns the Command type. More...
|
|
bool | isTransparent () const |
| Retruns whether is transparent. More...
|
|
void | setTransparent (bool isTransparent) |
| Set transparent flag. More...
|
|
bool | isSkipBatching () const |
| Get skip batching status, if a rendering is skip batching, it will be forced to be rendering seperately. More...
|
|
void | setSkipBatching (bool value) |
| Set skip batching. More...
|
|
local | setSkipBatching ( local value) |
| Set skip batching. More...
|
|
bool | is3D () const |
| Whether the command should be rendered at 3D mode. More...
|
|
void | set3D (bool value) |
| Set the command rendered in 3D mode or not. More...
|
|
float | getDepth () const |
| Get the depth by current model view matrix. More...
|
|
Command used to draw batches in one TextureAtlas.
Execute the command, which will call openGL function to draw the texture atlas.
Execute the command, which will call openGL function to draw the texture atlas.
Execute the command, which will call openGL function to draw the texture atlas.
Init the batch command.
- Parameters
-
globalZOrder | GlobalZOrder of the render command. |
shader | Shader used for draw the texture atlas. |
blendType | Blend function for texture atlas. |
textureAtlas | Texture atlas, will contain both quads and texture for rendering. |
modelViewTransform | Model view transform used for rendering. |
flags | Indicate the render command should be rendered in 3D mode or not. |
var init |
( |
var |
globalZOrder, |
|
|
var |
shader, |
|
|
var |
blendType, |
|
|
var |
textureAtlas, |
|
|
var |
modelViewTransform, |
|
|
var |
flags |
|
) |
| |
Init the batch command.
- Parameters
-
globalZOrder | GlobalZOrder of the render command. |
shader | Shader used for draw the texture atlas. |
blendType | Blend function for texture atlas. |
textureAtlas | Texture atlas, will contain both quads and texture for rendering. |
modelViewTransform | Model view transform used for rendering. |
flags | Indicate the render command should be rendered in 3D mode or not. |
local init |
( |
local |
globalZOrder, |
|
|
local |
shader, |
|
|
local |
blendType, |
|
|
local |
textureAtlas, |
|
|
local |
modelViewTransform, |
|
|
local |
flags |
|
) |
| |
Init the batch command.
- Parameters
-
globalZOrder | GlobalZOrder of the render command. |
shader | Shader used for draw the texture atlas. |
blendType | Blend function for texture atlas. |
textureAtlas | Texture atlas, will contain both quads and texture for rendering. |
modelViewTransform | Model view transform used for rendering. |
flags | Indicate the render command should be rendered in 3D mode or not. |
var init |
( |
var |
depth, |
|
|
var |
shader, |
|
|
var |
blendType, |
|
|
var |
textureAtlas, |
|
|
var |
modelViewTransform |
|
) |
| |
local init |
( |
local |
depth, |
|
|
local |
shader, |
|
|
local |
blendType, |
|
|
local |
textureAtlas, |
|
|
local |
modelViewTransform |
|
) |
| |
Blend function for rendering.
Blend function for rendering.
Blend function for rendering.
Shaders used for rendering.
Shaders used for rendering.
Shaders used for rendering.
Texture atlas for rendering.
Texture atlas for rendering.
Texture atlas for rendering.
Texture ID used for texture atlas rendering.
Texture ID used for texture atlas rendering.
Texture ID used for texture atlas rendering.
The documentation for this class was generated from the following file: