Command used to render primitive, similar to QuadCommand.
More...
#include <CCPrimitiveCommand.h>
|
void | init (float globalOrder, GLuint textureID, GLProgramState *glProgramState, BlendFunc blendType, Primitive *primitive, const Mat4 &mv, uint32_t flags) |
| Initializes the command. More...
|
|
local | init ( local globalOrder, local textureID, local glProgramState, local blendType, local primitive, local mv, local flags) |
| Initializes the command. More...
|
|
void | init (float globalOrder, GLuint textureID, GLProgramState *glProgramState, BlendFunc blendType, Primitive *primitive, const Mat4 &mv) |
uint32_t | getMaterialID () const |
| Get the generated material ID. More...
|
|
GLuint | getTextureID () const |
| Get the texture ID used for drawing. More...
|
|
GLProgramState * | getGLProgramState () const |
| Get the glprogramstate used for drawing. More...
|
|
BlendFunc | getBlendType () const |
| Get the blend funcion for drawing. More...
|
|
const Mat4 & | getModelView () const |
| Get the modelview matrix when draw the primtive. More...
|
|
void | execute () const |
| Execute and draw the commmand, called by renderer. More...
|
|
|
| PrimitiveCommand () |
| ~PrimitiveCommand () |
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 render primitive, similar to QuadCommand.
Every QuadCommand will have generate material ID by give textureID, glProgramState, Blend function. However, primitive command could not be batched.
Execute and draw the commmand, called by renderer.
Execute and draw the commmand, called by renderer.
Execute and draw the commmand, called by renderer.
Get the blend funcion for drawing.
Get the blend funcion for drawing.
Get the blend funcion for drawing.
Get the glprogramstate used for drawing.
var getGLProgramState |
( |
| ) |
|
|
inline |
Get the glprogramstate used for drawing.
local getGLProgramState |
( |
| ) |
|
|
inline |
Get the glprogramstate used for drawing.
Get the generated material ID.
Get the generated material ID.
Get the generated material ID.
const Mat4& getModelView |
( |
| ) |
const |
|
inline |
Get the modelview matrix when draw the primtive.
Get the modelview matrix when draw the primtive.
Get the modelview matrix when draw the primtive.
GLuint getTextureID |
( |
| ) |
const |
|
inline |
Get the texture ID used for drawing.
Get the texture ID used for drawing.
Get the texture ID used for drawing.
Initializes the command.
- Parameters
-
globalOrder | GlobalZOrder of the command. |
textureID | The openGL handle of the used texture. |
glProgramState | The specified glProgram and its uniform. |
blendType | Blend function for the command. |
primitive | Rendered primitive for the command. |
mv | ModelView matrix for the command. |
flags | to indicate that the command is using 3D rendering or not. |
var init |
( |
var |
globalOrder, |
|
|
var |
textureID, |
|
|
var |
glProgramState, |
|
|
var |
blendType, |
|
|
var |
primitive, |
|
|
var |
mv, |
|
|
var |
flags |
|
) |
| |
Initializes the command.
- Parameters
-
globalOrder | GlobalZOrder of the command. |
textureID | The openGL handle of the used texture. |
glProgramState | The specified glProgram and its uniform. |
blendType | Blend function for the command. |
primitive | Rendered primitive for the command. |
mv | ModelView matrix for the command. |
flags | to indicate that the command is using 3D rendering or not. |
local init |
( |
local |
globalOrder, |
|
|
local |
textureID, |
|
|
local |
glProgramState, |
|
|
local |
blendType, |
|
|
local |
primitive, |
|
|
local |
mv, |
|
|
local |
flags |
|
) |
| |
Initializes the command.
- Parameters
-
globalOrder | GlobalZOrder of the command. |
textureID | The openGL handle of the used texture. |
glProgramState | The specified glProgram and its uniform. |
blendType | Blend function for the command. |
primitive | Rendered primitive for the command. |
mv | ModelView matrix for the command. |
flags | to indicate that the command is using 3D rendering or not. |
var init |
( |
var |
globalOrder, |
|
|
var |
textureID, |
|
|
var |
glProgramState, |
|
|
var |
blendType, |
|
|
var |
primitive, |
|
|
var |
mv |
|
) |
| |
local init |
( |
local |
globalOrder, |
|
|
local |
textureID, |
|
|
local |
glProgramState, |
|
|
local |
blendType, |
|
|
local |
primitive, |
|
|
local |
mv |
|
) |
| |
The documentation for this class was generated from the following file: