cocos2d-x
3.3
|
#include <PolygonBatch.h>
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 () |
![]() | |
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 () |
NA NA More... | |
Static Public Member Functions | |
static PolygonBatch * | createWithCapacity (ssize_t capacity) |
Protected Member Functions | |
PolygonBatch () | |
virtual | ~PolygonBatch () |
bool | initWithCapacity (ssize_t capacity) |
![]() | |
Ref () | |
Constructor. More... | |
Protected Attributes | |
ssize_t | _capacity |
cocos2d::V2F_C4B_T2F * | _vertices |
int | _verticesCount |
GLushort * | _triangles |
int | _trianglesCount |
const cocos2d::Texture2D * | _texture |
![]() | |
unsigned int | _referenceCount |
count of references More... | |
|
protected |
|
protectedvirtual |
void add | ( | const cocos2d::Texture2D * | texture, |
const float * | vertices, | ||
const float * | uvs, | ||
int | verticesCount, | ||
const int * | triangles, | ||
int | trianglesCount, | ||
cocos2d::Color4B * | color | ||
) |
|
static |
void flush | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |