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

#include <CCPrimitive.h>

Inheritance diagram for Primitive:
Ref

Public Member Functions

const VertexDatagetVertexData () const
 
const IndexBuffergetIndexData () const
 
int getType () const
 
void draw ()
 
int getStart () const
 
int getCount () const
 
void setStart (int start)
 
void setCount (int count)
 
- 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 Primitivecreate (VertexData *verts, IndexBuffer *indices, int type)
 

Protected Member Functions

 Primitive ()
 
virtual ~Primitive ()
 
bool init (VertexData *verts, IndexBuffer *indices, int type)
 
- Protected Member Functions inherited from Ref
 Ref ()
 Constructor. More...
 

Protected Attributes

VertexData_verts
 
IndexBuffer_indices
 
int _start
 
int _count
 
int _type
 
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...
 

Constructor & Destructor Documentation

Primitive ( )
protected
virtual ~Primitive ( )
protectedvirtual

Member Function Documentation

static Primitive* create ( VertexData verts,
IndexBuffer indices,
int  type 
)
static
void draw ( )
int getCount ( ) const
inline
const IndexBuffer* getIndexData ( ) const
int getStart ( ) const
inline
int getType ( ) const
inline
const VertexData* getVertexData ( ) const
bool init ( VertexData verts,
IndexBuffer indices,
int  type 
)
protected
void setCount ( int  count)
inline
void setStart ( int  start)
inline

Member Data Documentation

int _count
protected
IndexBuffer* _indices
protected
int _start
protected
int _type
protected
VertexData* _verts
protected

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