|
cocos2d-x
3.3
|
Command used to render one or more Quads. More...
#include <CCQuadCommand.h>
Public Member Functions | |
| QuadCommand () | |
| ~QuadCommand () | |
| void | init (float globalOrder, GLuint texutreID, GLProgramState *shader, BlendFunc blendType, V3F_C4B_T2F_Quad *quads, ssize_t quadCount, const Mat4 &mv) |
Initializes the command with a globalZOrder, a texture ID, a GLProgram, a blending function, a pointer to quads, quantity of quads, and the Model View transform to be used for the quads. More... | |
| void | useMaterial () const |
| uint32_t | getMaterialID () const |
| GLuint | getTextureID () const |
| V3F_C4B_T2F_Quad * | getQuads () const |
| ssize_t | getQuadCount () const |
| GLProgramState * | getGLProgramState () const |
| BlendFunc | getBlendType () const |
| const Mat4 & | getModelView () const |
Public Member Functions inherited from RenderCommand | |
| float | getGlobalOrder () const |
| Get Render Command Id. 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... | |
Protected Member Functions | |
| void | generateMaterialID () |
Protected Member Functions inherited from RenderCommand | |
| RenderCommand () | |
| virtual | ~RenderCommand () |
| void | printID () |
Protected Attributes | |
| uint32_t | _materialID |
| GLuint | _textureID |
| GLProgramState * | _glProgramState |
| BlendFunc | _blendType |
| V3F_C4B_T2F_Quad * | _quads |
| ssize_t | _quadsCount |
| Mat4 | _mv |
Protected Attributes inherited from RenderCommand | |
| Type | _type |
| float | _globalOrder |
| bool | _isTransparent |
Additional Inherited Members | |
Public Types inherited from RenderCommand | |
| enum | Type { UNKNOWN_COMMAND, QUAD_COMMAND, CUSTOM_COMMAND, BATCH_COMMAND, GROUP_COMMAND, MESH_COMMAND, PRIMITIVE_COMMAND, TRIANGLES_COMMAND } |
Command used to render one or more Quads.
| QuadCommand | ( | ) |
| ~QuadCommand | ( | ) |
|
protected |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void init | ( | float | globalOrder, |
| GLuint | texutreID, | ||
| GLProgramState * | shader, | ||
| BlendFunc | blendType, | ||
| V3F_C4B_T2F_Quad * | quads, | ||
| ssize_t | quadCount, | ||
| const Mat4 & | mv | ||
| ) |
Initializes the command with a globalZOrder, a texture ID, a GLProgram, a blending function, a pointer to quads, quantity of quads, and the Model View transform to be used for the quads.
| void useMaterial | ( | ) | const |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |