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) |
local | create ( local positions, local normals, local texs, local indices) |
Mesh: TODO, add description of Mesh.
Defines supported index formats.
Defines supported index formats.
Defines supported index formats.
Defines supported primitive types.
Enumerator |
---|
TRIANGLES |
|
TRIANGLE_STRIP |
|
LINES |
|
LINE_STRIP |
|
POINTS |
|
Defines supported primitive types.
Enumerator |
---|
TRIANGLES |
|
TRIANGLE_STRIP |
|
LINES |
|
LINE_STRIP |
|
POINTS |
|
Defines supported primitive types.
Enumerator |
---|
TRIANGLES |
|
TRIANGLE_STRIP |
|
LINES |
|
LINE_STRIP |
|
POINTS |
|
void cleanAndFreeBuffers |
( |
| ) |
|
|
protected |
var cleanAndFreeBuffers |
( |
| ) |
|
|
protected |
local cleanAndFreeBuffers |
( |
| ) |
|
|
protected |
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 |
var create |
( |
var |
positions, |
|
|
var |
normals, |
|
|
var |
texs, |
|
|
var |
indices |
|
) |
| |
|
static |
local create |
( |
local |
positions, |
|
|
local |
normals, |
|
|
local |
texs, |
|
|
local |
indices |
|
) |
| |
|
static |
GLuint getIndexBuffer |
( |
| ) |
const |
|
inline |
ssize_t getMeshVertexAttribCount |
( |
| ) |
const |
|
inline |
var getMeshVertexAttribCount |
( |
| ) |
|
|
inline |
local getMeshVertexAttribCount |
( |
| ) |
|
|
inline |
var getMeshVertexAttribute |
( |
var |
idx | ) |
|
|
inline |
local getMeshVertexAttribute |
( |
local |
idx | ) |
|
|
inline |
local getPrimitiveType |
( |
| ) |
|
|
inline |
GLuint getVertexBuffer |
( |
| ) |
const |
|
inline |
local getVertexBuffer |
( |
| ) |
|
|
inline |
int getVertexSizeInBytes |
( |
| ) |
const |
|
inline |
var getVertexSizeInBytes |
( |
| ) |
|
|
inline |
local getVertexSizeInBytes |
( |
| ) |
|
|
inline |
bool hasVertexAttrib |
( |
int |
attrib | ) |
|
|
inline |
var hasVertexAttrib |
( |
var |
attrib | ) |
|
|
inline |
local hasVertexAttrib |
( |
local |
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 |
|
) |
| |
|
protected |
var init |
( |
var |
positions, |
|
|
var |
normals, |
|
|
var |
texs, |
|
|
var |
indices |
|
) |
| |
|
protected |
local init |
( |
local |
positions, |
|
|
local |
normals, |
|
|
local |
texs, |
|
|
local |
indices |
|
) |
| |
|
protected |
The documentation for this class was generated from the following file:
- /Users/guanghui/cocos2d-x/cocos/3d/CCMesh.h