cocos2d-x  3.0-rc0
 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
void generateMaterialID ()
var generateMaterialID ()
local generateMaterialID ()
uint64_t getMaterialID () const
GLuint getTextureID () const
V3F_C4B_T2F_QuadgetQuads () const
var getQuads ()
local getQuads ()
ssize_t getQuadCount () const
GLProgramgetShader () const
local getShader ()
BlendFunc getBlendType () const
local getBlendType ()
const kmMat4 & getModelView () const
local getModelView ()
- Public Member Functions inherited from RenderCommand
float getGlobalOrder () const
 Get Render Command Id. More...
 
local getGlobalOrder ()
 Get Render Command Id. More...
 
Type getType () const
 Returns the Command type. More...
 

Protected Attributes

uint64_t _materialID
GLuint _textureID
var _textureID
local _textureID
GLProgram_shader
var _shader
local _shader
BlendFunc _blendType
var _blendType
local _blendType
V3F_C4B_T2F_Quad_quads
local _quads
ssize_t _quadsCount
kmMat4 _mv
var _mv
local _mv
- Protected Attributes inherited from RenderCommand
Type _type
float _globalOrder
var _globalOrder
local _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

var QuadCommand ( )
local QuadCommand ( )
var ~QuadCommand ( )
local ~QuadCommand ( )

Member Function Documentation

void generateMaterialID ( )
var generateMaterialID ( )
local generateMaterialID ( )
BlendFunc getBlendType ( ) const
inline
var getBlendType ( )
inline
local getBlendType ( )
inline
uint64_t getMaterialID ( ) const
inline
var getMaterialID ( )
inline
local getMaterialID ( )
inline
const kmMat4& getModelView ( ) const
inline
var getModelView ( )
inline
local getModelView ( )
inline
ssize_t getQuadCount ( ) const
inline
var getQuadCount ( )
inline
local getQuadCount ( )
inline
V3F_C4B_T2F_Quad* getQuads ( ) const
inline
var getQuads ( )
inline
local getQuads ( )
inline
GLProgram* getShader ( ) const
inline
var getShader ( )
inline
local getShader ( )
inline
GLuint getTextureID ( ) const
inline
var getTextureID ( )
inline
local getTextureID ( )
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.

var init ( var  globalOrder,
var  texutreID,
var  shader,
var  blendType,
var  quads,
var  quadCount,
var  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.

local init ( local  globalOrder,
local  texutreID,
local  shader,
local  blendType,
local  quads,
local  quadCount,
local  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
var isTranslucent ( )
inline
local isTranslucent ( )
inline
void useMaterial ( ) const
var useMaterial ( )
local useMaterial ( )

Member Data Documentation

BlendFunc _blendType
protected
var _blendType
protected
local _blendType
protected
uint64_t _materialID
protected
kmMat4 _mv
protected
var _mv
protected
local _mv
protected
V3F_C4B_T2F_Quad* _quads
protected
var _quads
protected
local _quads
protected
ssize_t _quadsCount
protected
var _quadsCount
protected
local _quadsCount
protected
GLProgram* _shader
protected
var _shader
protected
local _shader
protected
GLuint _textureID
protected
var _textureID
protected
local _textureID
protected

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