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

#include <CCMeshVertexIndexData.h>

Inheritance diagram for MeshVertexData:
Ref

Public Member Functions

const VertexBuffer * getVertexBuffer () const
 get vertexbuffer More...
 
ssize_t getMeshVertexAttribCount () const
 get attributes count More...
 
const MeshVertexAttrib & getMeshVertexAttrib (ssize_t index) const
 get attribute by index More...
 
ssize_t getMeshIndexDataCount () const
 get index data count More...
 
MeshIndexData * getMeshIndexDataByIndex (int index) const
 get index data by index More...
 
MeshIndexData * getMeshIndexDataById (const std::string &id) const
 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...
 
Ref * autorelease ()
 Releases the ownership sometime soon automatically. More...
 
unsigned int getReferenceCount () const
 Returns the Ref's current reference count. More...
 
virtual ~Ref ()

Static Public Member Functions

static MeshVertexData * create (const MeshData &meshdata)
 create More...
 

Public Attributes

CC_CONSTRUCTOR_ACCESS __pad0__: MeshVertexData()

Protected Attributes

VertexData * _vertexData
VertexBuffer * _vertexBuffer
Vector< MeshIndexData * > _indexs
std::vector< MeshVertexAttrib > _attribs
int _vertexCount
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...
 
var _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...
 

Constructor & Destructor Documentation

virtual ~MeshVertexData ( )
virtual

Member Function Documentation

static MeshVertexData* create ( const MeshData &  meshdata)
static

create

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

get index data by id

MeshIndexData*
getMeshIndexDataByIndex
( int  index) const
inline

get index data by index

ssize_t getMeshIndexDataCount ( ) const
inline

get index data count

const MeshVertexAttrib&
getMeshVertexAttrib
( ssize_t  index) const
inline

get attribute by index

ssize_t getMeshVertexAttribCount ( ) const
inline

get attributes count

const VertexBuffer* getVertexBuffer ( ) const
inline

get vertexbuffer

bool hasVertexAttrib ( int  attrib) const

has vertex attribute?

Friends And Related Function Documentation

friend class Mesh
friend
friend class Sprite3D
friend

Member Data Documentation

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

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