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

#include <CCMeshCommand.h>

Inheritance diagram for MeshCommand:
RenderCommand

Public Member Functions

 MeshCommand ()
 MeshCommand ()
 MeshCommand ()
 ~MeshCommand ()
 ~MeshCommand ()
 ~MeshCommand ()
void init (float globalOrder, GLuint textureID, GLProgramState *glProgramState, BlendFunc blendType, GLuint vertexBuffer, GLuint indexBuffer, GLenum primitive, GLenum indexType, ssize_t indexCount, const Mat4 &mv)
var init ( var globalOrder, var textureID, var glProgramState, var blendType, var vertexBuffer, var indexBuffer, var primitive, var indexType, var indexCount, var mv)
local init ( local globalOrder, local textureID, local glProgramState, local blendType, local vertexBuffer, local indexBuffer, local primitive, local indexType, local indexCount, local mv)
void setCullFaceEnabled (bool enable)
var setCullFaceEnabled ( var enable)
local setCullFaceEnabled ( local enable)
void setCullFace (GLenum cullFace)
void setDepthTestEnabled (bool enable)
var setDepthTestEnabled ( var enable)
local setDepthTestEnabled ( local enable)
void setDepthWriteEnabled (bool enable)
var setDepthWriteEnabled ( var enable)
local setDepthWriteEnabled ( local enable)
void setDisplayColor (const Vec4 &color)
var setDisplayColor ( var color)
local setDisplayColor ( local color)
void setMatrixPalette (const Vec4 *matrixPalette)
var setMatrixPalette ( var matrixPalette)
local setMatrixPalette ( local matrixPalette)
void setMatrixPaletteSize (int size)
var setMatrixPaletteSize ( var size)
local setMatrixPaletteSize ( local size)
void execute ()
var execute ()
local execute ()
void preBatchDraw ()
var preBatchDraw ()
local preBatchDraw ()
void batchDraw ()
var batchDraw ()
local batchDraw ()
void postBatchDraw ()
var postBatchDraw ()
local postBatchDraw ()
void genMaterialID (GLuint texID, void *glProgramState, void *mesh, const BlendFunc &blend)
var genMaterialID ( var texID, var glProgramState, var mesh, var blend)
local genMaterialID ( local texID, local glProgramState, local mesh, local blend)
uint32_t getMaterialID () const
var getMaterialID ()
local getMaterialID ()
void listenRendererRecreated (EventCustom *event)
var listenRendererRecreated ( var event)
local listenRendererRecreated ( local event)
- Public Member Functions inherited from RenderCommand
float getGlobalOrder () const
 Get Render Command Id. More...
 
Type getType () const
 Returns the Command type. More...
 

Protected Member Functions

void buildVAO ()
void releaseVAO ()
var releaseVAO ()
local releaseVAO ()
void applyRenderState ()
var applyRenderState ()
local applyRenderState ()
void restoreRenderState ()
var restoreRenderState ()
local restoreRenderState ()
void MatrixPalleteCallBack (GLProgram *glProgram, Uniform *uniform)
var MatrixPalleteCallBack ( var glProgram, var uniform)
local MatrixPalleteCallBack ( local glProgram, local uniform)
- Protected Member Functions inherited from RenderCommand
 RenderCommand ()
virtual ~RenderCommand ()
local ~RenderCommand ()
void printID ()
local printID ()

Protected Attributes

GLuint _textureID
GLProgramState_glProgramState
var _glProgramState
local _glProgramState
BlendFunc _blendType
var _blendType
local _blendType
GLuint _textrueID
var _textrueID
local _textrueID
Vec4 _displayColor
var _displayColor
local _displayColor
const Vec4_matrixPalette
var _matrixPalette
local _matrixPalette
int _matrixPaletteSize
var _matrixPaletteSize
local _matrixPaletteSize
uint32_t _materialID
var _materialID
local _materialID
GLuint _vao
var _vao
local _vao
GLuint _vertexBuffer
var _vertexBuffer
local _vertexBuffer
GLuint _indexBuffer
var _indexBuffer
local _indexBuffer
GLenum _primitive
var _primitive
local _primitive
GLenum _indexFormat
var _indexFormat
local _indexFormat
ssize_t _indexCount
var _indexCount
local _indexCount
bool _cullFaceEnabled
var _cullFaceEnabled
local _cullFaceEnabled
GLenum _cullFace
var _cullFace
local _cullFace
bool _depthTestEnabled
var _depthTestEnabled
local _depthTestEnabled
bool _depthWriteEnabled
var _depthWriteEnabled
local _depthWriteEnabled
Mat4 _mv
var _mv
local _mv
EventListenerCustom_rendererRecreatedListener
var _rendererRecreatedListener
local _rendererRecreatedListener
- 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, MESH_COMMAND
}
 

Constructor & Destructor Documentation

var MeshCommand ( )
local MeshCommand ( )
var ~MeshCommand ( )
local ~MeshCommand ( )

Member Function Documentation

void applyRenderState ( )
protected
var applyRenderState ( )
protected
local applyRenderState ( )
protected
void batchDraw ( )
var batchDraw ( )
local batchDraw ( )
void buildVAO ( )
protected
var buildVAO ( )
protected
local buildVAO ( )
protected
void execute ( )
var execute ( )
local execute ( )
void genMaterialID ( GLuint  texID,
void *  glProgramState,
void *  mesh,
const BlendFunc blend 
)
var genMaterialID ( var  texID,
var  glProgramState,
var  mesh,
var  blend 
)
local genMaterialID ( local  texID,
local  glProgramState,
local  mesh,
local  blend 
)
uint32_t getMaterialID ( ) const
inline
var getMaterialID ( )
inline
local getMaterialID ( )
inline
void init ( float  globalOrder,
GLuint  textureID,
GLProgramState glProgramState,
BlendFunc  blendType,
GLuint  vertexBuffer,
GLuint  indexBuffer,
GLenum  primitive,
GLenum  indexType,
ssize_t  indexCount,
const Mat4 mv 
)
var init ( var  globalOrder,
var  textureID,
var  glProgramState,
var  blendType,
var  vertexBuffer,
var  indexBuffer,
var  primitive,
var  indexType,
var  indexCount,
var  mv 
)
local init ( local  globalOrder,
local  textureID,
local  glProgramState,
local  blendType,
local  vertexBuffer,
local  indexBuffer,
local  primitive,
local  indexType,
local  indexCount,
local  mv 
)
void listenRendererRecreated ( EventCustom event)
var listenRendererRecreated ( var  event)
local listenRendererRecreated ( local  event)
void MatrixPalleteCallBack ( GLProgram glProgram,
Uniform uniform 
)
protected
var MatrixPalleteCallBack ( var  glProgram,
var  uniform 
)
protected
local MatrixPalleteCallBack ( local  glProgram,
local  uniform 
)
protected
void postBatchDraw ( )
var postBatchDraw ( )
local postBatchDraw ( )
void preBatchDraw ( )
var preBatchDraw ( )
local preBatchDraw ( )
void releaseVAO ( )
protected
var releaseVAO ( )
protected
local releaseVAO ( )
protected
void restoreRenderState ( )
protected
var restoreRenderState ( )
protected
local restoreRenderState ( )
protected
void setCullFace ( GLenum  cullFace)
var setCullFace ( var  cullFace)
local setCullFace ( local  cullFace)
void setCullFaceEnabled ( bool  enable)
var setCullFaceEnabled ( var  enable)
local setCullFaceEnabled ( local  enable)
void setDepthTestEnabled ( bool  enable)
var setDepthTestEnabled ( var  enable)
local setDepthTestEnabled ( local  enable)
void setDepthWriteEnabled ( bool  enable)
var setDepthWriteEnabled ( var  enable)
local setDepthWriteEnabled ( local  enable)
void setDisplayColor ( const Vec4 color)
var setDisplayColor ( var  color)
local setDisplayColor ( local  color)
void setMatrixPalette ( const Vec4 matrixPalette)
inline
var setMatrixPalette ( var  matrixPalette)
inline
local setMatrixPalette ( local  matrixPalette)
inline
void setMatrixPaletteSize ( int  size)
inline
var setMatrixPaletteSize ( var  size)
inline
local setMatrixPaletteSize ( local  size)
inline

Member Data Documentation

BlendFunc _blendType
protected
var _blendType
protected
local _blendType
protected
GLenum _cullFace
protected
var _cullFace
protected
local _cullFace
protected
bool _cullFaceEnabled
protected
var _cullFaceEnabled
protected
local _cullFaceEnabled
protected
bool _depthTestEnabled
protected
var _depthTestEnabled
protected
local _depthTestEnabled
protected
bool _depthWriteEnabled
protected
var _depthWriteEnabled
protected
local _depthWriteEnabled
protected
Vec4 _displayColor
protected
var _displayColor
protected
local _displayColor
protected
GLProgramState* _glProgramState
protected
var _glProgramState
protected
local _glProgramState
protected
GLuint _indexBuffer
protected
var _indexBuffer
protected
local _indexBuffer
protected
ssize_t _indexCount
protected
var _indexCount
protected
local _indexCount
protected
GLenum _indexFormat
protected
var _indexFormat
protected
local _indexFormat
protected
uint32_t _materialID
protected
var _materialID
protected
local _materialID
protected
const Vec4* _matrixPalette
protected
var _matrixPalette
protected
local _matrixPalette
protected
int _matrixPaletteSize
protected
var _matrixPaletteSize
protected
local _matrixPaletteSize
protected
Mat4 _mv
protected
var _mv
protected
local _mv
protected
GLenum _primitive
protected
var _primitive
protected
local _primitive
protected
EventListenerCustom*
_rendererRecreatedListener
protected
var _rendererRecreatedListener
protected
local _rendererRecreatedListener
protected
GLuint _textrueID
protected
var _textrueID
protected
local _textrueID
protected
GLuint _textureID
protected
var _textureID
protected
local _textureID
protected
GLuint _vao
protected
var _vao
protected
local _vao
protected
GLuint _vertexBuffer
protected
var _vertexBuffer
protected
local _vertexBuffer
protected

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