Cocos2d-x  v3.17
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
MeshVertexData Class Reference

the MeshVertexData class. More...

Inherits Ref.

Public Member Functions

const VertexBuffergetVertexBuffer () const
 get vertexbuffer
 
ssize_t getMeshVertexAttribCount () const
 get attributes count
 
local getMeshVertexAttribCount ()
 get attributes count
 
const MeshVertexAttribgetMeshVertexAttrib (ssize_t index) const
 get attribute by index
 
var getMeshVertexAttrib ( var index)
 get attribute by index
 
local getMeshVertexAttrib ( local index)
 get attribute by index
 
ssize_t getMeshIndexDataCount () const
 get index data count
 
local getMeshIndexDataCount ()
 get index data count
 
MeshIndexDatagetMeshIndexDataByIndex (int index) const
 get index data by index
 
local getMeshIndexDataByIndex ( local index)
 get index data by index
 
MeshIndexDatagetMeshIndexDataById (const std::string &id) const
 get index data by id
 
bool hasVertexAttrib (int attrib) const
 has vertex attribute?
 
var hasVertexAttrib ( var attrib)
 has vertex attribute?
 
local hasVertexAttrib ( local attrib)
 has vertex attribute?
 
- Public Member Functions inherited from Ref
void retain ()
 Retains the ownership. More...
 
void release ()
 Releases the ownership immediately. More...
 
local 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...
 
local getReferenceCount ()
 Returns the Ref's current reference count. More...
 
virtual ~Ref ()
 Destructor. More...
 

Static Public Member Functions

static MeshVertexDatacreate (const MeshData &meshdata)
 create
 
var create ( var meshdata)
 create
 
local create ( local meshdata)
 create
 

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.
 

Detailed Description

the MeshVertexData class.

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


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