Mesh: TODO, add description of Mesh.
More...
#include <CCMesh.h>
|
static Mesh * | create (const std::vector< float > &positions, const std::vector< float > &normals, const std::vector< float > &texs, const std::vector< unsigned short > &indices) |
static Mesh * | create (const std::vector< float > &vertices, int vertexSizeInFloat, const std::vector< unsigned short > &indices, int numIndex, const std::vector< MeshVertexAttrib > &attribs, int attribCount) |
Mesh: TODO, add description of Mesh.
Defines supported index formats.
Defines supported primitive types.
Enumerator |
---|
TRIANGLES |
|
TRIANGLE_STRIP |
|
LINES |
|
LINE_STRIP |
|
POINTS |
|
void cleanAndFreeBuffers |
( |
| ) |
|
static Mesh* create |
( |
const std::vector< float > & |
positions, |
|
|
const std::vector< float > & |
normals, |
|
|
const std::vector< float > & |
texs, |
|
|
const std::vector< unsigned short > & |
indices |
|
) |
| |
|
static |
static Mesh* create |
( |
const std::vector< float > & |
vertices, |
|
|
int |
vertexSizeInFloat, |
|
|
const std::vector< unsigned short > & |
indices, |
|
|
int |
numIndex, |
|
|
const std::vector< MeshVertexAttrib > & |
attribs, |
|
|
int |
attribCount |
|
) |
| |
|
static |
GLuint getIndexBuffer |
( |
| ) |
const |
|
inline |
ssize_t getMeshVertexAttribCount |
( |
| ) |
const |
|
inline |
GLuint getVertexBuffer |
( |
| ) |
const |
|
inline |
int getVertexSizeInBytes |
( |
| ) |
const |
|
inline |
bool hasVertexAttrib |
( |
int |
attrib | ) |
|
|
inline |
bool init |
( |
const std::vector< float > & |
positions, |
|
|
const std::vector< float > & |
normals, |
|
|
const std::vector< float > & |
texs, |
|
|
const std::vector< unsigned short > & |
indices |
|
) |
| |
bool init |
( |
const std::vector< float > & |
vertices, |
|
|
int |
vertexSizeInFloat, |
|
|
const std::vector< unsigned short > & |
indices, |
|
|
int |
numIndex, |
|
|
const std::vector< MeshVertexAttrib > & |
attribs, |
|
|
int |
attribCount |
|
) |
| |
The documentation for this class was generated from the following file:
- /Users/minggo/SourceCode/cocos2d-x/cocos/3d/CCMesh.h