Cocos2d-x  v4
MeshVertexData Class Reference

the MeshVertexData class. More...

Inherits Ref.

Public Member Functions

backend::BuffergetVertexBuffer () const
 get vertexbuffer
 
ssize_t getMeshVertexAttribCount () const
 get attributes count
 
const MeshVertexAttribgetMeshVertexAttrib (ssize_t index) const
 get attribute by index
 
ssize_t getMeshIndexDataCount () const
 get index data count
 
MeshIndexDatagetMeshIndexDataByIndex (int index) const
 get index data by index
 
MeshIndexDatagetMeshIndexDataById (const std::string &id) const
 get index data by id
 
bool hasVertexAttrib (shaderinfos::VertexKey attrib) const
 has vertex attribute?
 
- 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
 

Additional Inherited Members

- Public Attributes inherited from Ref
unsigned int _ID
 object id, ScriptSupport need public _ID
 
int _luaID
 Lua reference id.
 
void * _scriptObject
 scriptObject, support for swift
 
bool _rooted
 When true, it means that the object was already rooted.
 

Detailed Description

the MeshVertexData class.

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


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