The MeshVertexData class. More...
Inherits Ref.
Public Member Functions | |
const VertexBuffer * | getVertexBuffer () const |
Get vertex buffer. 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... | |
local | getMeshIndexDataByIndex ( local index) |
Get index data by index. More... | |
MeshIndexData * | getMeshIndexDataById (const std::string &id) const |
Get index data by ID string. More... | |
bool | hasVertexAttrib (int attrib) const |
Check MeshVertexData whether has the specified vertex attribute. 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 MeshVertexData * | create (const MeshData &meshdata) |
Create MeshVertexData by specified MeshData object. More... | |
var | create ( var meshdata) |
Create MeshVertexData by specified MeshData object. More... | |
local | create ( local meshdata) |
Create MeshVertexData by specified MeshData object. 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 MeshVertexData class.
The MeshIndexData contain all of the vertices data which mesh need.
|
static |
Create MeshVertexData by specified MeshData object.
The MeshData object. The MeshVertexData object.
|
static |
Create MeshVertexData by specified MeshData object.
The MeshData object. The MeshVertexData object.
|
static |
Create MeshVertexData by specified MeshData object.
The MeshData object. The MeshVertexData object.
|
inline |
Get vertex buffer.
The VertexBuffer object.
|
inline |
Get vertex buffer.
The VertexBuffer object.
|
inline |
Get vertex buffer.
The VertexBuffer object.
|
inline |
Get attributes count.
The attributes count.
|
inline |
Get attributes count.
The attributes count.
|
inline |
Get attributes count.
The attributes count.
|
inline |
Get attribute by index.
The specified index. The MeshVertexAttrib object.
|
inline |
Get attribute by index.
The specified index. The MeshVertexAttrib object.
|
inline |
Get attribute by index.
The specified index. The MeshVertexAttrib object.
|
inline |
Get index data count.
The Indices array's size.
|
inline |
Get index data count.
The Indices array's size.
|
inline |
Get index data count.
The Indices array's size.
|
inline |
Get index data by index.
The specfied index. TheMeshIndexData object.
|
inline |
Get index data by index.
The specfied index. TheMeshIndexData object.
|
inline |
Get index data by index.
The specfied index. TheMeshIndexData object.
MeshIndexData* getMeshIndexDataById | ( | const std::string & | id | ) | const |
Get index data by ID string.
The string ID. The MeshIndexData object.
var getMeshIndexDataById | ( | var | id | ) |
Get index data by ID string.
The string ID. The MeshIndexData object.
local getMeshIndexDataById | ( | local | id | ) |
Get index data by ID string.
The string ID. The MeshIndexData object.
bool hasVertexAttrib | ( | int | attrib | ) | const |
Check MeshVertexData whether has the specified vertex attribute.
The specified attribute index. Return true if the MeshVertexData object have this attribute, otherwise return false.
var hasVertexAttrib | ( | var | attrib | ) |
Check MeshVertexData whether has the specified vertex attribute.
The specified attribute index. Return true if the MeshVertexData object have this attribute, otherwise return false.
local hasVertexAttrib | ( | local | attrib | ) |
Check MeshVertexData whether has the specified vertex attribute.
The specified attribute index. Return true if the MeshVertexData object have this attribute, otherwise return false.