Panda3D
|
A block of bytes that stores the actual raw vertex data referenced by a GeomVertexArrayData object. More...
#include <pandadoc.hpp>
Public Member Functions | |
VertexDataBlock | getNextBlock () |
Returns a pointer to the next allocated block in the chain, or NULL if there are no more allocated blocks. | |
VertexDataPage | getPage () |
Returns the page from which this buffer was allocated. | |
![]() | |
free () | |
Releases the allocated space. | |
SimpleAllocator | getAllocator () |
Returns the SimpleAllocator object that owns this block. | |
int | getMaxSize () |
Returns the maximum size this block can be reallocated to, as limited by the following block. | |
SimpleAllocatorBlock | getNextBlock () |
Returns a pointer to the next allocated block in the chain, or NULL if there are no more allocated blocks. | |
int | getSize () |
Returns the size of this block. | |
int | getStart () |
Returns the starting point of this block. | |
bool | isFree () |
Returns true if the block has been freed, false if it is still valid. | |
output (Ostream out) | |
bool | realloc (int size) |
Changes the size of this block to the specified size. | |
![]() | |
int | getRefCount () |
Returns the current reference count. | |
ref () | |
Explicitly increments the reference count. | |
bool | testRefCountIntegrity () |
Does some easy checks to make sure that the reference count isn't completely bogus. | |
bool | testRefCountNonzero () |
Does some easy checks to make sure that the reference count isn't zero, or completely bogus. | |
bool | unref () |
Explicitly decrements the reference count. | |
Additional Inherited Members | |
![]() | |
static TypeHandle | getClassType () |
![]() | |
int | ref_count |
The current reference count. | |
A block of bytes that stores the actual raw vertex data referenced by a GeomVertexArrayData object.
VertexDataBlock getNextBlock | ( | ) |
Returns a pointer to the next allocated block in the chain, or NULL if there are no more allocated blocks.
VertexDataPage getPage | ( | ) |
Returns the page from which this buffer was allocated.