# VertexDataBook

from pandac.PandaModules import VertexDataBook

Class : VertexDataBook
Description : A collection of VertexDataPages, which can be used to allocate new VertexDataBlock objects.

## Inheritance:

VertexDataBook:

## Methods of VertexDataBook:

alloc
countAllocatedSize
countTotalPageSize
getNumPages
saveToDisk

alloc VertexDataBlock *VertexDataBook::alloc(unsigned int size); Filename: vertexDataBook.I Created by: drose (16May07) PANDA 3D SOFTWARE Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved All use of this software is subject to the terms of the Panda 3d Software license. You should have received a copy of this license along with this source code; you will also find a current copy of the license at http://etc.cmu.edu/panda3d/docs/license/ . To contact the maintainers of this program write to panda3d-general@lists.sourceforge.net . 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.