VertexDataBook

from panda3d.core import VertexDataBook
class VertexDataBook

Bases:

A collection of VertexDataPages, which can be used to allocate new VertexDataBlock objects.

Inheritance diagram

Inheritance diagram of VertexDataBook

__init__(block_size: int)
alloc(size: int) VertexDataBlock

Allocates and returns a new VertexDataBuffer of the requested size.

count_allocated_size() int

Returns the total size of all bytes allocated within pages owned by this book.

count_allocated_size(ram_class: RamClass) int

Returns the total size of all bytes allocated within pages owned by this book that have the indicated ram class.

count_total_page_size() int

Returns the total size of all bytes owned by all pages owned by this book.

count_total_page_size(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.

get_num_pages() int

Returns the number of pages created for the book.

save_to_disk()

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.