#include <CCMeshCommand.h>
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 () |
Additional Inherited Members | |
Public Types inherited from RenderCommand | |
enum | Type { UNKNOWN_COMMAND, QUAD_COMMAND, CUSTOM_COMMAND, BATCH_COMMAND, GROUP_COMMAND, MESH_COMMAND } |
MeshCommand | ( | ) |
var MeshCommand | ( | ) |
local MeshCommand | ( | ) |
~MeshCommand | ( | ) |
var ~MeshCommand | ( | ) |
local ~MeshCommand | ( | ) |
|
protected |
|
protected |
|
protected |
void batchDraw | ( | ) |
var batchDraw | ( | ) |
local batchDraw | ( | ) |
|
protected |
|
protected |
|
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 | ||
) |
|
inline |
|
inline |
|
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 | ) |
|
protected |
|
protected |
void postBatchDraw | ( | ) |
var postBatchDraw | ( | ) |
local postBatchDraw | ( | ) |
void preBatchDraw | ( | ) |
var preBatchDraw | ( | ) |
local preBatchDraw | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
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 | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |