VertexDataBook

from panda3d.core import VertexDataBook
class VertexDataBook

Bases: DTOOL_SUPER_BASE

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

Inheritance diagram

Inheritance diagram of VertexDataBook

__init__(*args, **kwargs)
alloc()

C++ Interface: alloc(const VertexDataBook self, int size)

/**
  • Allocates and returns a new VertexDataBuffer of the requested size.

*/

countAllocatedSize()

C++ Interface: count_allocated_size(VertexDataBook self) count_allocated_size(VertexDataBook self, int ram_class)

/**
  • Returns the total size of all bytes allocated within pages owned by this

  • book.

*/

/**
  • Returns the total size of all bytes allocated within pages owned by this

  • book that have the indicated ram class.

*/

countTotalPageSize()

C++ Interface: count_total_page_size(VertexDataBook self) count_total_page_size(VertexDataBook self, int ram_class)

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

*/

/**
  • Returns the total size of all bytes owned by all pages owned by this book

  • that have the indicated ram class.

*/

count_allocated_size()

C++ Interface: count_allocated_size(VertexDataBook self) count_allocated_size(VertexDataBook self, int ram_class)

/**
  • Returns the total size of all bytes allocated within pages owned by this

  • book.

*/

/**
  • Returns the total size of all bytes allocated within pages owned by this

  • book that have the indicated ram class.

*/

count_total_page_size()

C++ Interface: count_total_page_size(VertexDataBook self) count_total_page_size(VertexDataBook self, int ram_class)

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

*/

/**
  • Returns the total size of all bytes owned by all pages owned by this book

  • that have the indicated ram class.

*/

getNumPages()

C++ Interface: get_num_pages(VertexDataBook self)

/**
  • Returns the number of pages created for the book.

*/

get_num_pages()

C++ Interface: get_num_pages(VertexDataBook self)

/**
  • Returns the number of pages created for the book.

*/

saveToDisk()

C++ Interface: save_to_disk(const VertexDataBook self)

/**
  • 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.

*/

save_to_disk()

C++ Interface: save_to_disk(const VertexDataBook self)

/**
  • 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.

*/