alloc VertexDataBlock *VertexDataBook::alloc(unsigned int size); Filename: vertexDataBook.I Created by: drose (16May07) PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. All rights reserved. All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE." Description: Allocates and returns a new VertexDataBuffer of the requested size. |
countAllocatedSize unsigned int VertexDataBook::count_allocated_size(void) const; Description: Returns the total size of all bytes allocated within pages owned by this book. Description: Returns the total size of all bytes allocated within pages owned by this book that have the indicated ram class. |
countTotalPageSize unsigned int VertexDataBook::count_total_page_size(void) const; Description: Returns the total size of all bytes owned by all pages owned by this book. Description: Returns the total size of all bytes owned by all pages owned by this book that have the indicated ram class. |
getNumPages int VertexDataBook::get_num_pages(void) const; Description: Returns the number of pages created for the book. |
saveToDisk void VertexDataBook::save_to_disk(void); Description: 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. |