The MeshIndexData class. More...
Inherits Ref.
Public Member Functions | |
| const IndexBuffer * | getIndexBuffer () const |
| Get index buffer. More... | |
| const VertexBuffer * | getVertexBuffer () const |
| Get vertex buffer. More... | |
| const MeshVertexData * | getMeshVertexData () const |
| Get vertex data. More... | |
| void | setAABB (const AABB &aabb) |
| Set MeshIndexData's AABB New AABB object. | |
| const AABB & | getAABB () const |
| Get MeshIndexData's AABB The AABB object. | |
| void | setId (const std::string &id) |
| Set the MeshIndexData object's ID. More... | |
| const std::string & | getId () const |
| Get the MeshIndexData object's ID. More... | |
| GLenum | getPrimitiveType () const |
| Get the MeshIndexData object's primitive type. More... | |
| void | setPrimitiveType (GLenum primitive) |
| Set the MeshIndexData object's primitive type. More... | |
Public Member Functions inherited from Ref | |
| void | retain () |
| Retains the ownership. More... | |
| local | 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... | |
| local | getReferenceCount () |
| Returns the Ref's current reference count. More... | |
| virtual | ~Ref () |
| Destructor. | |
Static Public Member Functions | |
| static MeshIndexData * | create (const std::string &id, MeshVertexData *vertexData, IndexBuffer *indexbuffer, const AABB &aabb) |
| Create MeshIndexData object form the specified name, vertices, indices and AABB. More... | |
Additional Inherited Members | |
Public Attributes inherited from Ref | |
| unsigned int | _ID |
| object id, ScriptSupport need public _ID | |
| local | _ID |
| object id, ScriptSupport need public _ID | |
| int | _luaID |
| Lua reference id. | |
| local | _luaID |
| Lua reference id. | |
| void * | _scriptObject |
| scriptObject, support for swift | |
| local | _scriptObject |
| scriptObject, support for swift | |
| bool | _rooted |
| When true, it means that the object was already rooted. | |
| local | _rooted |
| When true, it means that the object was already rooted. | |
| bool | _scriptOwned |
| The life of the object is scrolled by the scripting engine. More... | |
| local | _scriptOwned |
| The life of the object is scrolled by the scripting engine. More... | |
The MeshIndexData class.
the MeshIndexData contain all of the indices data which mesh need.
|
static |
Create MeshIndexData object form the specified name, vertices, indices and AABB.
The MeshIndexData object name. The MeshIndexData object's vertices. The MeshIndexData object's indices. The MeshIndexData object's aabb. The MeshIndexData object.
|
inline |
Get index buffer.
The IndexBuffer object.
| const VertexBuffer* getVertexBuffer | ( | ) | const |
Get vertex buffer.
The VertexBuffer object.
|
inline |
Get vertex data.
The MeshVertexData object.
|
inline |
Set the MeshIndexData object's ID.
The new ID.
|
inline |
Get the MeshIndexData object's ID.
The MeshIndexData object's ID.
|
inline |
Get the MeshIndexData object's primitive type.
The primitive type.
|
inline |
Set the MeshIndexData object's primitive type.
The new primitive type.