cocos2d-x  3.3
 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 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...
 
MeshIndexDatagetMeshIndexDataById (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...
 
Refautorelease ()
 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 MeshVertexDatacreate (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...
 

Friends

class Sprite3D
class Mesh

Additional Inherited Members

- Protected Member Functions inherited from Ref
 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: