Panda3D
|
A block of bytes that stores the actual raw vertex data referenced by a GeomVertexArrayData object. More...
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. More... | |
VertexDataPage | getPage () |
Returns the page from which this buffer was allocated. More... | |
![]() | |
free () | |
Releases the allocated space. More... | |
SimpleAllocator | getAllocator () |
Returns the SimpleAllocator object that owns this block. Returns NULL if the block has been freed. More... | |
size_t | getMaxSize () |
Returns the maximum size this block can be reallocated to, as limited by the following block. More... | |
SimpleAllocatorBlock | getNextBlock () |
Returns a pointer to the next allocated block in the chain, or NULL if there are no more allocated blocks. More... | |
size_t | getSize () |
Returns the size of this block. It is an error to call this if the block has been freed. More... | |
size_t | getStart () |
Returns the starting point of this block. It is an error to call this if the block has been freed. More... | |
bool | isFree () |
Returns true if the block has been freed, false if it is still valid. More... | |
output (Ostream out) | |
bool | realloc (size_t size) |
Changes the size of this block to the specified size. Returns true if the change is accepted, false if there was not enough room. More... | |
![]() | |
int | getRefCount () |
Returns the current reference count. More... | |
ref () | |
Explicitly increments the reference count. User code should avoid using ref() and unref() directly, which can result in missed reference counts. Instead, let a PointerTo object manage the reference counting automatically. More... | |
bool | testRefCountIntegrity () |
Does some easy checks to make sure that the reference count isn't completely bogus. Returns true if ok, false otherwise. More... | |
bool | testRefCountNonzero () |
Does some easy checks to make sure that the reference count isn't zero, or completely bogus. Returns true if ok, false otherwise. More... | |
bool | unref () |
Explicitly decrements the reference count. Note that the object will not be implicitly deleted by unref() simply because the reference count drops to zero. (Having a member function delete itself is problematic.) However, see the helper function unref_delete(). More... | |
Additional Inherited Members | |
![]() | |
static TypeHandle | getClassType () |
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.