Cocos2d-x  v4
MeshIndexData Class Reference

the MeshIndexData class. More...

Inherits Ref.

Public Member Functions

backend::Buffer * getIndexBuffer () const
 get index buffer
 
backend::Buffer * getVertexBuffer () const
 get vertex buffer
 
const MeshVertexData * getMeshVertexData () const
 get vertex data
 
void setAABB (const AABB &aabb)
 aabb getter and setter
 
void setId (const std::string &id)
 id setter and getter
 
MeshCommand::PrimitiveType getPrimitiveType () const
 primitive type setter & getter
 
- 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 ()
 Destructor. More...
 

Static Public Member Functions

static MeshIndexData * create (const std::string &id, MeshVertexData *vertexData, backend::Buffer *indexbuffer, const AABB &aabb)
 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 MeshIndexData class.

the MeshIndexData contain all of the indices data which mesh need. @js NA @lua NA


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