cocos2d-x  3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
MeshIndexData Class Reference

#include <CCMeshVertexIndexData.h>

Inheritance diagram for MeshIndexData:
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)
 aabb getter and setter More...
 
const AABBgetAABB () const
 
void setId (const std::string &id)
 id setter and getter More...
 
const std::string & getId () const
 
GLenum getPrimitiveType () const
 primitive type setter & getter More...
 
void setPrimitiveType (GLenum primitive)
 
virtual ~MeshIndexData ()
 
- Public Member Functions inherited from Ref
void 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...
 
virtual ~Ref ()
 NA NA More...
 

Static Public Member Functions

static MeshIndexDatacreate (const std::string &id, MeshVertexData *vertexData, IndexBuffer *indexbuffer, const AABB &aabb)
 create More...
 

Public Attributes

CC_CONSTRUCTOR_ACCESS __pad0__: MeshIndexData()
 

Protected Attributes

IndexBuffer_indexBuffer
 
MeshVertexData_vertexData
 
AABB _aabb
 
std::string _id
 
GLenum _primitiveType
 
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...
 

Friends

class MeshVertexData
 
class Sprite3D
 

Additional Inherited Members

- Protected Member Functions inherited from Ref
 Ref ()
 Constructor. More...
 

Constructor & Destructor Documentation

virtual ~MeshIndexData ( )
virtual

Member Function Documentation

static MeshIndexData* create ( const std::string &  id,
MeshVertexData vertexData,
IndexBuffer indexbuffer,
const AABB aabb 
)
static

create

const AABB& getAABB ( ) const
inline
const std::string& getId ( ) const
inline
const IndexBuffer* getIndexBuffer ( ) const
inline

get index buffer

const MeshVertexData* getMeshVertexData ( ) const
inline

get vertex data

GLenum getPrimitiveType ( ) const
inline

primitive type setter & getter

const VertexBuffer* getVertexBuffer ( ) const

get vertex buffer

void setAABB ( const AABB aabb)
inline

aabb getter and setter

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

id setter and getter

void setPrimitiveType ( GLenum  primitive)
inline

Friends And Related Function Documentation

friend class MeshVertexData
friend
friend class Sprite3D
friend

Member Data Documentation

AABB _aabb
protected
std::string _id
protected
IndexBuffer* _indexBuffer
protected
GLenum _primitiveType
protected
MeshVertexData* _vertexData
protected

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