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

the MeshVertexData class. More...

#include <CCMeshVertexIndexData.h>

Inheritance diagram for MeshVertexData:
Ref

Public Member Functions

const VertexBuffergetVertexBuffer () const
 get vertexbuffer More...
 
ssize_t getMeshVertexAttribCount () const
 get attributes count More...
 
const MeshVertexAttribgetMeshVertexAttrib (ssize_t index) const
 get attribute by index More...
 
ssize_t getMeshIndexDataCount () const
 get index data count More...
 
MeshIndexDatagetMeshIndexDataByIndex (int index) const
 get index data by index More...
 
var getMeshIndexDataByIndex ( var index)
 get index data by index More...
 
local getMeshIndexDataByIndex ( local index)
 get index data by index More...
 
MeshIndexDatagetMeshIndexDataById (const std::string &id) const
 get index data by id More...
 
local getMeshIndexDataById ( local id)
 get index data by id More...
 
bool hasVertexAttrib (int attrib) const
 has vertex attribute? More...
 
virtual ~MeshVertexData ()
- Public Member Functions inherited from Ref
void retain ()
 Retains the ownership. More...
 
void release ()
 Releases the ownership immediately. More...
 
Refautorelease ()
 Releases the ownership sometime soon automatically. More...
 
unsigned int getReferenceCount () const
 Returns the Ref's current reference count. More...
 
virtual ~Ref ()
 Destructor. More...
 

Static Public Member Functions

static MeshVertexDatacreate (const MeshData &meshdata)
 create More...
 
local create ( local meshdata)
 create More...
 

Public Attributes

CC_CONSTRUCTOR_ACCESS __pad0__: MeshVertexData()

Protected Attributes

VertexData_vertexData
VertexBuffer_vertexBuffer
Vector< MeshIndexData * > _indexs
std::vector< MeshVertexAttrib_attribs
var _attribs
local _attribs
int _vertexCount
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...
 
local _referenceCount
 count of references More...
 

Friends

class Sprite3D
class Mesh

Additional Inherited Members

- Protected Member Functions inherited from Ref
 Ref ()
 Constructor. More...
 
 Ref ()
 Constructor. More...
 

Detailed Description

the MeshVertexData class.

the MeshIndexData contain all of the vertices data which mesh need.

Constructor & Destructor Documentation

virtual ~MeshVertexData ( )
virtual
var ~MeshVertexData ( )
virtual
local ~MeshVertexData ( )
virtual

Member Function Documentation

static MeshVertexData* create ( const MeshData meshdata)
static

create

var create ( var  meshdata)
static

create

local create ( local  meshdata)
static

create

MeshIndexData* getMeshIndexDataById ( const std::string &  id) const

get index data by id

var getMeshIndexDataById ( var  id)

get index data by id

local getMeshIndexDataById ( local  id)

get index data by id

MeshIndexData*
getMeshIndexDataByIndex
( int  index) const
inline

get index data by index

var getMeshIndexDataByIndex ( var  index)
inline

get index data by index

local getMeshIndexDataByIndex ( local  index)
inline

get index data by index

ssize_t getMeshIndexDataCount ( ) const
inline

get index data count

var getMeshIndexDataCount ( )
inline

get index data count

local getMeshIndexDataCount ( )
inline

get index data count

const MeshVertexAttrib&
getMeshVertexAttrib
( ssize_t  index) const
inline

get attribute by index

var getMeshVertexAttrib ( var  index)
inline

get attribute by index

local getMeshVertexAttrib ( local  index)
inline

get attribute by index

ssize_t getMeshVertexAttribCount ( ) const
inline

get attributes count

var getMeshVertexAttribCount ( )
inline

get attributes count

local getMeshVertexAttribCount ( )
inline

get attributes count

const VertexBuffer* getVertexBuffer ( ) const
inline

get vertexbuffer

var getVertexBuffer ( )
inline

get vertexbuffer

local getVertexBuffer ( )
inline

get vertexbuffer

bool hasVertexAttrib ( int  attrib) const

has vertex attribute?

var hasVertexAttrib ( var  attrib)

has vertex attribute?

local hasVertexAttrib ( local  attrib)

has vertex attribute?

Friends And Related Function Documentation

friend class Mesh
friend
var Mesh
friend
local Mesh
friend
friend class Sprite3D
friend
var Sprite3D
friend
local Sprite3D
friend

Member Data Documentation

var __pad0__
local __pad0__
std::vector<MeshVertexAttrib>
_attribs
protected
var _attribs
protected
local _attribs
protected
Vector<MeshIndexData*> _indexs
protected
var _indexs
protected
local _indexs
protected
VertexBuffer* _vertexBuffer
protected
var _vertexBuffer
protected
local _vertexBuffer
protected
int _vertexCount
protected
var _vertexCount
protected
local _vertexCount
protected
VertexData* _vertexData
protected
var _vertexData
protected
local _vertexData
protected

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