Panda3D
Public Member Functions | List of all members
VertexDataBlock Class Reference

A block of bytes that stores the actual raw vertex data referenced by a GeomVertexArrayData object. More...

Inheritance diagram for VertexDataBlock:
SimpleAllocatorBlock ReferenceCount

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...
 
- Public Member Functions inherited from SimpleAllocatorBlock
 free ()
 Releases the allocated space. More...
 
SimpleAllocator getAllocator ()
 Returns the SimpleAllocator object that owns this block. More...
 
int 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...
 
int getSize ()
 Returns the size of this block. More...
 
int getStart ()
 Returns the starting point of this block. More...
 
bool isFree ()
 Returns true if the block has been freed, false if it is still valid. More...
 
 output (Ostream out)
 
bool realloc (int size)
 Changes the size of this block to the specified size. More...
 
- Public Member Functions inherited from ReferenceCount
int getRefCount ()
 Returns the current reference count. More...
 
 ref ()
 Explicitly increments the reference count. More...
 
bool testRefCountIntegrity ()
 Does some easy checks to make sure that the reference count isn't completely bogus. More...
 
bool testRefCountNonzero ()
 Does some easy checks to make sure that the reference count isn't zero, or completely bogus. More...
 
bool unref ()
 Explicitly decrements the reference count. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ReferenceCount
static TypeHandle getClassType ()
 
- Public Attributes inherited from ReferenceCount
int ref_count
 The current reference count. More...
 

Detailed Description

A block of bytes that stores the actual raw vertex data referenced by a GeomVertexArrayData object.

Member Function Documentation

◆ getNextBlock()

VertexDataBlock getNextBlock ( )

Returns a pointer to the next allocated block in the chain, or NULL if there are no more allocated blocks.

◆ getPage()

VertexDataPage getPage ( )

Returns the page from which this buffer was allocated.