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
var getType ()
local getType ()
void draw ()
var draw ()
local draw ()
int getStart () const
var getStart ()
local getStart ()
int getCount () const
var getCount ()
local getCount ()
void setStart (int start)
local setStart ( local 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 ()

Static Public Member Functions

static Primitivecreate (VertexData *verts, IndexBuffer *indices, int type)
var create ( var verts, var indices, var type)
local create ( local verts, local indices, local type)

Protected Member Functions

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

Protected Attributes

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

Constructor & Destructor Documentation

Primitive ( )
protected
var Primitive ( )
protected
local Primitive ( )
protected
virtual ~Primitive ( )
protectedvirtual
var ~Primitive ( )
protectedvirtual
local ~Primitive ( )
protectedvirtual

Member Function Documentation

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

Member Data Documentation

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

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