|
Panda3D
|
A collection of VertexDataPages, which can be used to allocate new VertexDataBlock objects. More...
Public Member Functions | |
| VertexDataBook (unsigned int block_size) | |
| VertexDataBlock | alloc (unsigned int size) |
| Allocates and returns a new VertexDataBuffer of the requested size. | |
| unsigned int | countAllocatedSize (RamClass ram_class) |
| Returns the total size of all bytes allocated within pages owned by this book that have the indicated ram class. | |
| unsigned int | countAllocatedSize () |
| Returns the total size of all bytes allocated within pages owned by this book. | |
| unsigned int | countTotalPageSize (RamClass ram_class) |
| Returns the total size of all bytes owned by all pages owned by this book that have the indicated ram class. | |
| unsigned int | countTotalPageSize () |
| Returns the total size of all bytes owned by all pages owned by this book. | |
| int | getNumPages () |
| Returns the number of pages created for the book. | |
| saveToDisk () | |
| Writes all pages to disk immediately, just in case they get evicted later. | |
A collection of VertexDataPages, which can be used to allocate new VertexDataBlock objects.
| VertexDataBook | ( | unsigned int | block_size | ) |
| VertexDataBlock alloc | ( | unsigned int | size | ) |
Allocates and returns a new VertexDataBuffer of the requested size.
| unsigned int countAllocatedSize | ( | ) |
Returns the total size of all bytes allocated within pages owned by this book.
| unsigned int countAllocatedSize | ( | RamClass | ram_class | ) |
Returns the total size of all bytes allocated within pages owned by this book that have the indicated ram class.
| unsigned int countTotalPageSize | ( | RamClass | ram_class | ) |
Returns the total size of all bytes owned by all pages owned by this book that have the indicated ram class.
| unsigned int countTotalPageSize | ( | ) |
Returns the total size of all bytes owned by all pages owned by this book.
| int getNumPages | ( | ) |
Returns the number of pages created for the book.
| saveToDisk | ( | ) |
Writes all pages to disk immediately, just in case they get evicted later.
It makes sense to make this call just before taking down a loading screen, to minimize chugs from saving pages inadvertently later.
1.7.3