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

#include <CCQuadCommand.h>

Inheritance diagram for QuadCommand:
RenderCommand

Public Member Functions

 QuadCommand ()
 ~QuadCommand ()
void init (int viewport, int32_t depth, GLuint texutreID, GLProgram *shader, BlendFunc blendType, V3F_C4B_T2F_Quad *quad, ssize_t quadCount, const kmMat4 &mv)
var init ( var viewport, var depth, var texutreID, var shader, var blendType, var quad, var quadCount, var mv)
local init ( local viewport, local depth, local texutreID, local shader, local blendType, local quad, local quadCount, local mv)
virtual int64_t generateID ()
local generateID ()
void useMaterial ()
bool isTranslucent () const
int32_t getMaterialID () const
GLuint getTextureID () const
V3F_C4B_T2F_QuadgetQuad () const
var getQuad ()
local getQuad ()
ssize_t getQuadCount () const
GLProgramgetShader () const
local getShader ()
BlendFunc getBlendType () const
local getBlendType ()
- Public Member Functions inherited from RenderCommand
virtual int64_t getID ()
 Get Render Command Id. More...
 
local getID ()
 Get Render Command Id. More...
 
virtual Type getType ()

Protected Attributes

int32_t _materialID
int _viewport
int32_t _depth
 Which view port it belongs to. More...
 
var _depth
 Which view port it belongs to. More...
 
local _depth
 Which view port it belongs to. More...
 
GLuint _textureID
GLProgram_shader
var _shader
local _shader
BlendFunc _blendType
var _blendType
local _blendType
V3F_C4B_T2F_Quad_quad
var _quad
local _quad
ssize_t _quadCount
ssize_t _capacity
var _capacity
local _capacity
- Protected Attributes inherited from RenderCommand
int64_t _id
Type _type
 used for sorting render commands More...
 
var _type
 used for sorting render commands More...
 
local _type
 used for sorting render commands More...
 

Additional Inherited Members

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

Constructor & Destructor Documentation

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

Member Function Documentation

virtual int64_t generateID ( )
virtual

Implements RenderCommand.

var generateID ( )
virtual

Implements RenderCommand.

local generateID ( )
virtual

Implements RenderCommand.

BlendFunc getBlendType ( ) const
inline
var getBlendType ( )
inline
local getBlendType ( )
inline
int32_t getMaterialID ( ) const
inline
var getMaterialID ( )
inline
local getMaterialID ( )
inline
V3F_C4B_T2F_Quad* getQuad ( ) const
inline
var getQuad ( )
inline
local getQuad ( )
inline
ssize_t getQuadCount ( ) const
inline
var getQuadCount ( )
inline
local getQuadCount ( )
inline
GLProgram* getShader ( ) const
inline
var getShader ( )
inline
local getShader ( )
inline
GLuint getTextureID ( ) const
inline
var getTextureID ( )
inline
local getTextureID ( )
inline
void init ( int  viewport,
int32_t  depth,
GLuint  texutreID,
GLProgram shader,
BlendFunc  blendType,
V3F_C4B_T2F_Quad quad,
ssize_t  quadCount,
const kmMat4 &  mv 
)
var init ( var  viewport,
var  depth,
var  texutreID,
var  shader,
var  blendType,
var  quad,
var  quadCount,
var  mv 
)
local init ( local  viewport,
local  depth,
local  texutreID,
local  shader,
local  blendType,
local  quad,
local  quadCount,
local  mv 
)
bool isTranslucent ( ) const
inline
var isTranslucent ( )
inline
local isTranslucent ( )
inline
void useMaterial ( )
var useMaterial ( )
local useMaterial ( )

Member Data Documentation

BlendFunc _blendType
protected
var _blendType
protected
local _blendType
protected
ssize_t _capacity
protected
var _capacity
protected
local _capacity
protected
int32_t _depth
protected

Which view port it belongs to.

var _depth
protected

Which view port it belongs to.

local _depth
protected

Which view port it belongs to.

int32_t _materialID
protected
var _materialID
protected
local _materialID
protected
V3F_C4B_T2F_Quad* _quad
protected
var _quad
protected
local _quad
protected
ssize_t _quadCount
protected
var _quadCount
protected
local _quadCount
protected
GLProgram* _shader
protected
var _shader
protected
local _shader
protected
GLuint _textureID
protected
var _textureID
protected
local _textureID
protected
int _viewport
protected
var _viewport
protected
local _viewport
protected

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