#include <CCTrianglesCommand.h>
|
| TrianglesCommand () |
| ~TrianglesCommand () |
void | init (float globalOrder, GLuint textureID, GLProgramState *glProgramState, BlendFunc blendType, const Triangles &triangles, const Mat4 &mv, uint32_t flags) |
| Initializes the command with a globalZOrder, a texture ID, a GLProgram , a blending function, a pointer to triangles, quantity of quads, and the Model View transform to be used for the quads. More...
|
|
void | init (float globalOrder, GLuint textureID, GLProgramState *glProgramState, BlendFunc blendType, const Triangles &triangles, const Mat4 &mv) |
void | useMaterial () const |
uint32_t | getMaterialID () const |
GLuint | getTextureID () const |
const Triangles & | getTriangles () const |
ssize_t | getVertexCount () const |
ssize_t | getIndexCount () const |
const V3F_C4B_T2F * | getVertices () const |
const unsigned short * | getIndices () const |
GLProgramState * | getGLProgramState () const |
BlendFunc | getBlendType () const |
const Mat4 & | getModelView () 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 |
void generateMaterialID |
( |
| ) |
|
|
protected |
var generateMaterialID |
( |
| ) |
|
|
protected |
local generateMaterialID |
( |
| ) |
|
|
protected |
var getGLProgramState |
( |
| ) |
|
|
inline |
local getGLProgramState |
( |
| ) |
|
|
inline |
const unsigned short* getIndices |
( |
| ) |
const |
|
inline |
const Mat4& getModelView |
( |
| ) |
const |
|
inline |
GLuint getTextureID |
( |
| ) |
const |
|
inline |
Initializes the command with a globalZOrder, a texture ID, a GLProgram
, a blending function, a pointer to triangles, quantity of quads, and the Model View transform to be used for the quads.
var init |
( |
var |
globalOrder, |
|
|
var |
textureID, |
|
|
var |
glProgramState, |
|
|
var |
blendType, |
|
|
var |
triangles, |
|
|
var |
mv, |
|
|
var |
flags |
|
) |
| |
Initializes the command with a globalZOrder, a texture ID, a GLProgram
, a blending function, a pointer to triangles, quantity of quads, and the Model View transform to be used for the quads.
local init |
( |
local |
globalOrder, |
|
|
local |
textureID, |
|
|
local |
glProgramState, |
|
|
local |
blendType, |
|
|
local |
triangles, |
|
|
local |
mv, |
|
|
local |
flags |
|
) |
| |
Initializes the command with a globalZOrder, a texture ID, a GLProgram
, a blending function, a pointer to triangles, quantity of quads, and the Model View transform to be used for the quads.
var init |
( |
var |
globalOrder, |
|
|
var |
textureID, |
|
|
var |
glProgramState, |
|
|
var |
blendType, |
|
|
var |
triangles, |
|
|
var |
mv |
|
) |
| |
local init |
( |
local |
globalOrder, |
|
|
local |
textureID, |
|
|
local |
glProgramState, |
|
|
local |
blendType, |
|
|
local |
triangles, |
|
|
local |
mv |
|
) |
| |
void useMaterial |
( |
| ) |
const |
The documentation for this class was generated from the following file: