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

The MeshIndexData class. More...

Inherits Ref.

Public Member Functions

const IndexBuffergetIndexBuffer () const
 Get index buffer. More...
 
const VertexBuffergetVertexBuffer () const
 Get vertex buffer. More...
 
const MeshVertexDatagetMeshVertexData () const
 Get vertex data. More...
 
void setAABB (const AABB &aabb)
 Set MeshIndexData's AABB New AABB object.
 
const AABBgetAABB () 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...
 
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 MeshIndexDatacreate (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...
 

Detailed Description

The MeshIndexData class.

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

Member Function Documentation

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

const IndexBuffer* getIndexBuffer ( ) const
inline

Get index buffer.

The IndexBuffer object.

const VertexBuffer* getVertexBuffer ( ) const

Get vertex buffer.

The VertexBuffer object.

const MeshVertexData*
getMeshVertexData
( ) const
inline

Get vertex data.

The MeshVertexData object.

void setId ( const std::string &  id)
inline

Set the MeshIndexData object's ID.

The new ID.

const std::string& getId ( ) const
inline

Get the MeshIndexData object's ID.

The MeshIndexData object's ID.

GLenum getPrimitiveType ( ) const
inline

Get the MeshIndexData object's primitive type.

The primitive type.

void setPrimitiveType ( GLenum  primitive)
inline

Set the MeshIndexData object's primitive type.

The new primitive type.


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