#include <CCVertexIndexBuffer.h>
Public Types | |
| enum | IndexType { INDEX_TYPE_SHORT_16, INDEX_TYPE_UINT_32 } |
Public Member Functions | |
| IndexType | getType () const |
| int | getSizePerIndex () const |
| int | getIndexNumber () const |
| bool | updateIndices (const void *indices, int count, int begin) |
| int | getSize () const |
| GLuint | getVBO () const |
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... | |
| local | getReferenceCount () |
| Returns the Ref's current reference count. More... | |
| virtual | ~Ref () |
Static Public Member Functions | |
| static IndexBuffer * | create (IndexType type, int number) |
| static bool | isShadowCopyEnabled () |
| static void | enableShadowCopy (bool enabled) |
Protected Member Functions | |
| IndexBuffer () | |
| virtual | ~IndexBuffer () |
| bool | init (IndexType type, int number) |
| void | recreateVBO () const |
Protected Member Functions inherited from Ref | |
| Ref () | |
| Constructor. More... | |
| Ref () | |
| Constructor. More... | |
Protected Attributes | |
| GLuint | _vbo |
| IndexType | _type |
| int | _indexNumber |
| EventListenerCustom * | _recreateVBOEventListener |
| std::vector< unsigned char > | _shadowCopy |
Protected Attributes inherited from Ref | |
| unsigned int | _referenceCount |
| count of references More... | |
| local | _referenceCount |
| count of references More... | |
Static Protected Attributes | |
| static bool | _enableShadowCopy |
|
strong |
|
protected |
|
protectedvirtual |
|
static |
|
inlinestatic |
| int getIndexNumber | ( | ) | const |
| int getSize | ( | ) | const |
| int getSizePerIndex | ( | ) | const |
| IndexType getType | ( | ) | const |
| GLuint getVBO | ( | ) | const |
|
protected |
|
inlinestatic |
|
protected |
| bool updateIndices | ( | const void * | indices, |
| int | count, | ||
| int | begin | ||
| ) |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
mutableprotected |