cocos2d-x  3.4
 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...
 
Ref * autorelease ()
 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 PolygonBatch * createWithCapacity (ssize_t capacity)

Protected Member Functions

 PolygonBatch ()
virtual ~PolygonBatch ()
local ~PolygonBatch ()
bool initWithCapacity (ssize_t capacity)
var initWithCapacity ( var capacity)
local initWithCapacity ( local capacity)
- Protected Member Functions inherited from Ref
 Ref ()
 Constructor. More...
 
 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...
 
var _referenceCount
 count of references More...
 
local _referenceCount
 count of references More...
 

Constructor & Destructor Documentation

PolygonBatch ( )
protected
var PolygonBatch ( )
protected
local PolygonBatch ( )
protected
virtual ~PolygonBatch ( )
protectedvirtual
var ~PolygonBatch ( )
protectedvirtual
local ~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 
)
var add ( var  texture,
var  vertices,
var  uvs,
var  verticesCount,
var  triangles,
var  trianglesCount,
var  color 
)
local add ( local  texture,
local  vertices,
local  uvs,
local  verticesCount,
local  triangles,
local  trianglesCount,
local  color 
)
static PolygonBatch*
createWithCapacity
( ssize_t  capacity)
static
var createWithCapacity ( var  capacity)
static
local createWithCapacity ( local  capacity)
static
void flush ( )
var flush ( )
local flush ( )
bool initWithCapacity ( ssize_t  capacity)
protected
var initWithCapacity ( var  capacity)
protected
local initWithCapacity ( local  capacity)
protected

Member Data Documentation

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

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