cocos2d-x
3.3
|
#include <CCVertexIndexBuffer.h>
Public Member Functions | |
int | getSizePerVertex () const |
int | getVertexNumber () const |
bool | updateVertices (const void *verts, int count, int begin) |
int | getSize () const |
GLuint | getVBO () const |
![]() | |
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 VertexBuffer * | create (int sizePerVertex, int vertexNumber) |
static bool | isShadowCopyEnabled () |
static void | enableShadowCopy (bool enabled) |
Protected Member Functions | |
VertexBuffer () | |
virtual | ~VertexBuffer () |
bool | init (int sizePerVertex, int vertexNumber) |
void | recreateVBO () const |
![]() | |
Ref () | |
Constructor. More... | |
Protected Attributes | |
EventListenerCustom * | _recreateVBOEventListener |
GLuint | _vbo |
int | _sizePerVertex |
int | _vertexNumber |
std::vector< unsigned char > | _shadowCopy |
![]() | |
unsigned int | _referenceCount |
count of references More... | |
Static Protected Attributes | |
static bool | _enableShadowCopy |
|
protected |
|
protectedvirtual |
|
static |
|
inlinestatic |
int getSize | ( | ) | const |
int getSizePerVertex | ( | ) | const |
GLuint getVBO | ( | ) | const |
int getVertexNumber | ( | ) | const |
|
protected |
|
inlinestatic |
|
protected |
bool updateVertices | ( | const void * | verts, |
int | count, | ||
int | begin | ||
) |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
mutableprotected |
|
protected |