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

#include <PolygonBatch.h>

Inheritance diagram for PolygonBatch:
Ref

Public Member Functions

void add (const cocos2d::Texture2D *texture, const float *vertices, const float *uvs, int verticesCount, const int *triangles, int trianglesCount, cocos2d::Color4B *color)
 
void flush ()
 
- 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 PolygonBatchcreateWithCapacity (ssize_t capacity)
 

Protected Member Functions

 PolygonBatch ()
 
virtual ~PolygonBatch ()
 
bool initWithCapacity (ssize_t capacity)
 
- Protected Member Functions inherited from Ref
 Ref ()
 Constructor. More...
 

Protected Attributes

ssize_t _capacity
 
cocos2d::V2F_C4B_T2F_vertices
 
int _verticesCount
 
GLushort * _triangles
 
int _trianglesCount
 
const cocos2d::Texture2D_texture
 
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...
 

Constructor & Destructor Documentation

PolygonBatch ( )
protected
virtual ~PolygonBatch ( )
protectedvirtual

Member Function Documentation

void add ( const cocos2d::Texture2D texture,
const float *  vertices,
const float *  uvs,
int  verticesCount,
const int *  triangles,
int  trianglesCount,
cocos2d::Color4B color 
)
static PolygonBatch* createWithCapacity ( ssize_t  capacity)
static
void flush ( )
bool initWithCapacity ( ssize_t  capacity)
protected

Member Data Documentation

ssize_t _capacity
protected
const cocos2d::Texture2D* _texture
protected
GLushort* _triangles
protected
int _trianglesCount
protected
cocos2d::V2F_C4B_T2F* _vertices
protected
int _verticesCount
protected

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