Panda3D
|
A block of bytes that stores the actual raw vertex data referenced by a GeomVertexArrayData object. More...
#include "vertexDataBlock.h"
Public Member Functions | |
VertexDataBlock * | get_next_block () const |
Returns a pointer to the next allocated block in the chain, or NULL if there are no more allocated blocks. | |
VertexDataPage * | get_page () const |
Returns the page from which this buffer was allocated. | |
unsigned char * | get_pointer (bool force) const |
Returns a pointer to the start of the allocated memory for this buffer, or NULL if the data is not currently resident. | |
Protected Member Functions | |
VertexDataBlock (VertexDataPage *page, size_t start, size_t size) | |
Friends | |
class | VertexDataPage |
A block of bytes that stores the actual raw vertex data referenced by a GeomVertexArrayData object.
Definition at line 30 of file vertexDataBlock.h.
VertexDataBlock * VertexDataBlock::get_next_block | ( | ) | const [inline] |
Returns a pointer to the next allocated block in the chain, or NULL if there are no more allocated blocks.
Reimplemented from SimpleAllocatorBlock.
Definition at line 68 of file vertexDataBlock.I.
VertexDataPage * VertexDataBlock::get_page | ( | ) | const [inline] |
Returns the page from which this buffer was allocated.
Definition at line 34 of file vertexDataBlock.I.
References SimpleAllocatorBlock::get_allocator().
Referenced by get_pointer().
unsigned char * VertexDataBlock::get_pointer | ( | bool | force | ) | const [inline] |
Returns a pointer to the start of the allocated memory for this buffer, or NULL if the data is not currently resident.
If the data is not currently resident, this will implicitly request it to become resident soon.
If force is true, this method will never return NULL, but may block until the data is available.
Definition at line 51 of file vertexDataBlock.I.
References get_page(), VertexDataPage::get_page_data(), and SimpleAllocatorBlock::get_start().