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

The MeshVertexData class. More...

Inherits Ref.

Public Member Functions

const VertexBuffergetVertexBuffer () const
 Get vertex buffer. More...
 
ssize_t getMeshVertexAttribCount () const
 Get attributes count. More...
 
const MeshVertexAttribgetMeshVertexAttrib (ssize_t index) const
 Get attribute by index. More...
 
ssize_t getMeshIndexDataCount () const
 Get index data count. More...
 
MeshIndexDatagetMeshIndexDataByIndex (int index) const
 Get index data by index. More...
 
local getMeshIndexDataByIndex ( local index)
 Get index data by index. More...
 
MeshIndexDatagetMeshIndexDataById (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...
 
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.
 

Static Public Member Functions

static MeshVertexDatacreate (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...
 

Detailed Description

The MeshVertexData class.

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

Member Function Documentation

static MeshVertexData* create ( const MeshData meshdata)
static

Create MeshVertexData by specified MeshData object.

The MeshData object. The MeshVertexData object.

var create ( var  meshdata)
static

Create MeshVertexData by specified MeshData object.

The MeshData object. The MeshVertexData object.

local create ( local  meshdata)
static

Create MeshVertexData by specified MeshData object.

The MeshData object. The MeshVertexData object.

const VertexBuffer* getVertexBuffer ( ) const
inline

Get vertex buffer.

The VertexBuffer object.

var getVertexBuffer ( )
inline

Get vertex buffer.

The VertexBuffer object.

local getVertexBuffer ( )
inline

Get vertex buffer.

The VertexBuffer object.

ssize_t getMeshVertexAttribCount ( ) const
inline

Get attributes count.

The attributes count.

var getMeshVertexAttribCount ( )
inline

Get attributes count.

The attributes count.

local getMeshVertexAttribCount ( )
inline

Get attributes count.

The attributes count.

const MeshVertexAttrib&
getMeshVertexAttrib
( ssize_t  index) const
inline

Get attribute by index.

The specified index. The MeshVertexAttrib object.

var getMeshVertexAttrib ( var  index)
inline

Get attribute by index.

The specified index. The MeshVertexAttrib object.

local getMeshVertexAttrib ( local  index)
inline

Get attribute by index.

The specified index. The MeshVertexAttrib object.

ssize_t getMeshIndexDataCount ( ) const
inline

Get index data count.

The Indices array's size.

var getMeshIndexDataCount ( )
inline

Get index data count.

The Indices array's size.

local getMeshIndexDataCount ( )
inline

Get index data count.

The Indices array's size.

MeshIndexData*
getMeshIndexDataByIndex
( int  index) const
inline

Get index data by index.

The specfied index. TheMeshIndexData object.

var getMeshIndexDataByIndex ( var  index)
inline

Get index data by index.

The specfied index. TheMeshIndexData object.

local getMeshIndexDataByIndex ( local  index)
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.


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