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