VertexDataBook
from panda3d.core import VertexDataBook
- class VertexDataBook
Bases:
A collection of
VertexDataPages
, which can be used to allocate newVertexDataBlock
objects.Inheritance diagram
- alloc(size: int) VertexDataBlock
Allocates and returns a new VertexDataBuffer of the requested size.
- countAllocatedSize() int
Returns the total size of all bytes allocated within pages owned by this book.
- countAllocatedSize(ram_class: RamClass) int
Returns the total size of all bytes allocated within pages owned by this book that have the indicated ram class.
- countTotalPageSize() int
Returns the total size of all bytes owned by all pages owned by this book.
- countTotalPageSize(ram_class: RamClass) int
Returns the total size of all bytes owned by all pages owned by this book that have the indicated ram class.
- 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.