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

#include <CCMesh.h>

Public Member Functions

 RenderMeshData ()
bool hasVertexAttrib (int attrib)
bool init (const std::vector< float > &positions, const std::vector< float > &normals, const std::vector< float > &texs, const std::vector< unsigned short > &indices)
var init ( var positions, var normals, var texs, var indices)
local init ( local positions, local normals, local texs, local indices)
bool init (const std::vector< float > &vertices, int vertexSizeInFloat, const std::vector< unsigned short > &indices, const std::vector< MeshVertexAttrib > &attribs)

Protected Member Functions

int calVertexSizeBytes ()
var calVertexSizeBytes ()
local calVertexSizeBytes ()

Protected Attributes

int _vertexsizeBytes
var _vertexsizeBytes
local _vertexsizeBytes
ssize_t _vertexNum
var _vertexNum
local _vertexNum
std::vector< float > _vertexs
var _vertexs
local _vertexs
std::vector< unsigned short > _indices
var _indices
local _indices
std::vector< MeshVertexAttrib_vertexAttribs
var _vertexAttribs
local _vertexAttribs

Friends

class Mesh

Constructor & Destructor Documentation

RenderMeshData ( )
inline
var RenderMeshData ( )
inline
local RenderMeshData ( )
inline

Member Function Documentation

int calVertexSizeBytes ( )
protected
var calVertexSizeBytes ( )
protected
local calVertexSizeBytes ( )
protected
bool hasVertexAttrib ( int  attrib)
var hasVertexAttrib ( var  attrib)
local hasVertexAttrib ( local  attrib)
bool init ( const std::vector< float > &  positions,
const std::vector< float > &  normals,
const std::vector< float > &  texs,
const std::vector< unsigned short > &  indices 
)
var init ( var  positions,
var  normals,
var  texs,
var  indices 
)
local init ( local  positions,
local  normals,
local  texs,
local  indices 
)
bool init ( const std::vector< float > &  vertices,
int  vertexSizeInFloat,
const std::vector< unsigned short > &  indices,
const std::vector< MeshVertexAttrib > &  attribs 
)
var init ( var  vertices,
var  vertexSizeInFloat,
var  indices,
var  attribs 
)
local init ( local  vertices,
local  vertexSizeInFloat,
local  indices,
local  attribs 
)

Friends And Related Function Documentation

friend class Mesh
friend
var Mesh
friend
local Mesh
friend

Member Data Documentation

std::vector<unsigned short>
_indices
protected
var _indices
protected
local _indices
protected
std::vector<MeshVertexAttrib>
_vertexAttribs
protected
var _vertexAttribs
protected
local _vertexAttribs
protected
ssize_t _vertexNum
protected
var _vertexNum
protected
local _vertexNum
protected
std::vector<float> _vertexs
protected
var _vertexs
protected
local _vertexs
protected
int _vertexsizeBytes
protected
var _vertexsizeBytes
protected
local _vertexsizeBytes
protected

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