#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... | |
| virtual | ~Ref () |
Static Public Member Functions | |
| static IndexBuffer * | create (IndexType type, int number, GLenum usage=GL_STATIC_DRAW) |
| static bool | isShadowCopyEnabled () |
| var | isShadowCopyEnabled () |
| local | isShadowCopyEnabled () |
| static void | enableShadowCopy (bool enabled) |
| var | enableShadowCopy ( var enabled) |
| local | enableShadowCopy ( local enabled) |
Protected Member Functions | |
| IndexBuffer () | |
| virtual | ~IndexBuffer () |
| local | ~IndexBuffer () |
| bool | init (IndexType type, int number, GLenum usage=GL_STATIC_DRAW) |
| var | init ( var type, var number, var GL_STATIC_DRAW) |
| local | init ( local type, local number, local GL_STATIC_DRAW) |
| 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 |
| var | _recreateVBOEventListener |
| local | _recreateVBOEventListener |
| std::vector< unsigned char > | _shadowCopy |
| var | _shadowCopy |
| local | _shadowCopy |
| GLenum | _usage |
Protected Attributes inherited from Ref | |
| unsigned int | _referenceCount |
| count of references More... | |
| var | _referenceCount |
| count of references More... | |
| local | _referenceCount |
| count of references More... | |
Static Protected Attributes | |
| static bool | _enableShadowCopy |
|
strong |
|
strong |
|
strong |
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
static |
|
static |
|
static |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
| int getIndexNumber | ( | ) | const |
| var getIndexNumber | ( | ) |
| local getIndexNumber | ( | ) |
| int getSize | ( | ) | const |
| var getSize | ( | ) |
| local getSize | ( | ) |
| int getSizePerIndex | ( | ) | const |
| var getSizePerIndex | ( | ) |
| local getSizePerIndex | ( | ) |
| IndexType getType | ( | ) | const |
| var getType | ( | ) |
| local getType | ( | ) |
| GLuint getVBO | ( | ) | const |
| var getVBO | ( | ) |
| local getVBO | ( | ) |
|
protected |
|
protected |
|
protected |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
protected |
|
protected |
|
protected |
| bool updateIndices | ( | const void * | indices, |
| int | count, | ||
| int | begin | ||
| ) |
| var updateIndices | ( | var | indices, |
| var | count, | ||
| var | begin | ||
| ) |
| local updateIndices | ( | local | indices, |
| local | count, | ||
| local | begin | ||
| ) |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |