cocos2d-x  3.4
 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 ()
 ~QuadCommand ()
 ~QuadCommand ()
void init (float globalOrder, GLuint textureID, GLProgramState *shader, const BlendFunc &blendType, V3F_C4B_T2F_Quad *quads, ssize_t quadCount, const Mat4 &mv, uint32_t flags)
 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...
 
var init ( var globalOrder, var textureID, var shader, var blendType, var quads, var quadCount, var mv, var flags)
 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...
 
local init ( local globalOrder, local textureID, local shader, local blendType, local quads, local quadCount, local mv, local flags)
 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 init (float globalOrder, GLuint textureID, GLProgramState *shader, const BlendFunc &blendType, V3F_C4B_T2F_Quad *quads, ssize_t quadCount, const Mat4 &mv)
void useMaterial () const
var useMaterial ()
local useMaterial ()
uint32_t getMaterialID () const
var getMaterialID ()
local getMaterialID ()
GLuint getTextureID () const
var getTextureID ()
local getTextureID ()
V3F_C4B_T2F_QuadgetQuads () const
local getQuads ()
ssize_t getQuadCount () const
var getQuadCount ()
local getQuadCount ()
GLProgramStategetGLProgramState () const
local getGLProgramState ()
BlendFunc getBlendType () const
var getBlendType ()
local getBlendType ()
const Mat4getModelView () const
var getModelView ()
local getModelView ()
- 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 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...
 
bool isSkipBatching () const
void setSkipBatching (bool value)
bool is3D () const
void set3D (bool value)
float getDepth () const

Protected Member Functions

void generateMaterialID ()
var generateMaterialID ()
local generateMaterialID ()
- Protected Member Functions inherited from RenderCommand
 RenderCommand ()
virtual ~RenderCommand ()
local ~RenderCommand ()
void printID ()

Protected Attributes

uint32_t _materialID
GLuint _textureID
var _textureID
local _textureID
GLProgramState_glProgramState
var _glProgramState
local _glProgramState
BlendFunc _blendType
var _blendType
local _blendType
V3F_C4B_T2F_Quad_quads
var _quads
local _quads
ssize_t _quadsCount
var _quadsCount
local _quadsCount
Mat4 _mv
var _mv
local _mv
- Protected Attributes inherited from RenderCommand
Type _type
float _globalOrder
bool _isTransparent
bool _skipBatching
bool _is3D
float _depth

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
}
 

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 ( )
protected
var generateMaterialID ( )
protected
local generateMaterialID ( )
protected
BlendFunc getBlendType ( ) const
inline
var getBlendType ( )
inline
local getBlendType ( )
inline
GLProgramState* getGLProgramState ( ) const
inline
var getGLProgramState ( )
inline
local getGLProgramState ( )
inline
uint32_t getMaterialID ( ) const
inline
var getMaterialID ( )
inline
local getMaterialID ( )
inline
const Mat4& 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
GLuint getTextureID ( ) const
inline
var getTextureID ( )
inline
local getTextureID ( )
inline
void init ( float  globalOrder,
GLuint  textureID,
GLProgramState shader,
const BlendFunc blendType,
V3F_C4B_T2F_Quad quads,
ssize_t  quadCount,
const Mat4 mv,
uint32_t  flags 
)

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  textureID,
var  shader,
var  blendType,
var  quads,
var  quadCount,
var  mv,
var  flags 
)

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  textureID,
local  shader,
local  blendType,
local  quads,
local  quadCount,
local  mv,
local  flags 
)

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 init ( float  globalOrder,
GLuint  textureID,
GLProgramState shader,
const BlendFunc blendType,
V3F_C4B_T2F_Quad quads,
ssize_t  quadCount,
const Mat4 mv 
)
var init ( var  globalOrder,
var  textureID,
var  shader,
var  blendType,
var  quads,
var  quadCount,
var  mv 
)
local init ( local  globalOrder,
local  textureID,
local  shader,
local  blendType,
local  quads,
local  quadCount,
local  mv 
)
void useMaterial ( ) const
var useMaterial ( )
local useMaterial ( )

Member Data Documentation

BlendFunc _blendType
protected
var _blendType
protected
local _blendType
protected
GLProgramState* _glProgramState
protected
var _glProgramState
protected
local _glProgramState
protected
uint32_t _materialID
protected
var _materialID
protected
Mat4 _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
GLuint _textureID
protected
var _textureID
protected
local _textureID
protected

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