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

#include <CCPrimitiveCommand.h>

Inheritance diagram for PrimitiveCommand:
RenderCommand

Public Member Functions

 PrimitiveCommand ()
 ~PrimitiveCommand ()
void init (float globalOrder, GLuint textureID, GLProgramState *glProgramState, BlendFunc blendType, Primitive *primitive, const Mat4 &mv, uint32_t flags)
local init ( local globalOrder, local textureID, local glProgramState, local blendType, local primitive, local mv, local flags)
void init (float globalOrder, GLuint textureID, GLProgramState *glProgramState, BlendFunc blendType, Primitive *primitive, const Mat4 &mv)
uint32_t getMaterialID () const
GLuint getTextureID () const
GLProgramStategetGLProgramState () const
BlendFunc getBlendType () const
const Mat4getModelView () const
void execute () const
- 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 Attributes

uint32_t _materialID
GLuint _textureID
GLProgramState_glProgramState
BlendFunc _blendType
Primitive_primitive
Mat4 _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
}
 
- Protected Member Functions inherited from RenderCommand
 RenderCommand ()
virtual ~RenderCommand ()
local ~RenderCommand ()
void printID ()

Constructor & Destructor Documentation

local PrimitiveCommand ( )
var ~PrimitiveCommand ( )
local ~PrimitiveCommand ( )

Member Function Documentation

void execute ( ) const
var execute ( )
local execute ( )
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
GLuint getTextureID ( ) const
inline
var getTextureID ( )
inline
local getTextureID ( )
inline
void init ( float  globalOrder,
GLuint  textureID,
GLProgramState glProgramState,
BlendFunc  blendType,
Primitive primitive,
const Mat4 mv,
uint32_t  flags 
)
var init ( var  globalOrder,
var  textureID,
var  glProgramState,
var  blendType,
var  primitive,
var  mv,
var  flags 
)
local init ( local  globalOrder,
local  textureID,
local  glProgramState,
local  blendType,
local  primitive,
local  mv,
local  flags 
)
void init ( float  globalOrder,
GLuint  textureID,
GLProgramState glProgramState,
BlendFunc  blendType,
Primitive primitive,
const Mat4 mv 
)
var init ( var  globalOrder,
var  textureID,
var  glProgramState,
var  blendType,
var  primitive,
var  mv 
)
local init ( local  globalOrder,
local  textureID,
local  glProgramState,
local  blendType,
local  primitive,
local  mv 
)

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
local _materialID
protected
Mat4 _mv
protected
var _mv
protected
local _mv
protected
Primitive* _primitive
protected
var _primitive
protected
local _primitive
protected
GLuint _textureID
protected
var _textureID
protected
local _textureID
protected

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