cocos2d-x  3.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
QuadCommand Class Reference

Command used to render one or more Quads. More...

#include <CCQuadCommand.h>

Inheritance diagram for QuadCommand:
RenderCommand

Public Member Functions

 QuadCommand ()
 ~QuadCommand ()
void init (float globalOrder, GLuint texutreID, GLProgram *shader, BlendFunc blendType, V3F_C4B_T2F_Quad *quads, ssize_t quadCount, const kmMat4 &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
bool isTranslucent () const
uint32_t getMaterialID () const
GLuint getTextureID () const
V3F_C4B_T2F_QuadgetQuads () const
ssize_t getQuadCount () const
GLProgramgetShader () const
BlendFunc getBlendType () const
const kmMat4 & getModelView () const
- Public Member Functions inherited from RenderCommand
float getGlobalOrder () const
 Get Render Command Id. More...
 
Type getType () const
 Returns the Command type. More...
 

Protected Attributes

uint32_t _materialID
GLuint _textureID
GLProgram_shader
BlendFunc _blendType
V3F_C4B_T2F_Quad_quads
ssize_t _quadsCount
kmMat4 _mv
- Protected Attributes inherited from RenderCommand
Type _type
float _globalOrder

Additional Inherited Members

- Public Types inherited from RenderCommand
enum  Type {
  UNKNOWN_COMMAND, QUAD_COMMAND, CUSTOM_COMMAND, BATCH_COMMAND,
  GROUP_COMMAND
}
 
- Protected Member Functions inherited from RenderCommand
 RenderCommand ()
virtual ~RenderCommand ()
void printID ()

Detailed Description

Command used to render one or more Quads.

Constructor & Destructor Documentation

Member Function Documentation

BlendFunc getBlendType ( ) const
inline
uint32_t getMaterialID ( ) const
inline
const kmMat4& getModelView ( ) const
inline
ssize_t getQuadCount ( ) const
inline
V3F_C4B_T2F_Quad* getQuads ( ) const
inline
GLProgram* getShader ( ) const
inline
GLuint getTextureID ( ) const
inline
void init ( float  globalOrder,
GLuint  texutreID,
GLProgram shader,
BlendFunc  blendType,
V3F_C4B_T2F_Quad quads,
ssize_t  quadCount,
const kmMat4 &  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.

bool isTranslucent ( ) const
inline
void useMaterial ( ) const

Member Data Documentation

BlendFunc _blendType
protected
uint32_t _materialID
protected
kmMat4 _mv
protected
V3F_C4B_T2F_Quad* _quads
protected
ssize_t _quadsCount
protected
GLProgram* _shader
protected
GLuint _textureID
protected

The documentation for this class was generated from the following file: