# VertexBufferContext

from pandac.PandaModules import VertexBufferContext

Class : VertexBufferContext
Description : This is a special class object that holds all the information returned by a particular GSG to indicate the vertex data array's internal context identifier.
This allows the GSG to cache the vertex data array in whatever way makes sense. For instance, DirectX can allocate a vertex buffer for the array. OpenGL can create a buffer object.

## Inheritance:

VertexBufferContext: BufferContext
BufferContext: SavedContext
SavedContext: TypedObject
TypedObject: MemoryBase
MemoryBase:

## Methods of VertexBufferContext:

changedSize
changedUsageHint
getClassType
getData
wasModified

## Methods of BufferContext:

getClassType
getDataSizeBytes
getModified

## Methods of SavedContext:

getClassType

## Methods of TypedObject:

getClassType
getType
getTypeIndex
isExactType
isOfType

changedSize bool VertexBufferContext::changed_size(GeomVertexArrayDataHandle const *reader) const; Description: Returns true if the data has changed size since the last time mark_loaded() was called.

changedUsageHint bool VertexBufferContext::changed_usage_hint(GeomVertexArrayDataHandle const *reader) const; Description: Returns true if the data has changed its usage hint since the last time mark_loaded() was called.

getClassType static TypeHandle VertexBufferContext::get_class_type(void); Undocumented function.

getData GeomVertexArrayData *VertexBufferContext::get_data(void) const; Description: Returns the pointer to the client-side array data object.

wasModified bool VertexBufferContext::was_modified(GeomVertexArrayDataHandle const *reader) const; Description: Returns true if the data has been modified since the last time mark_loaded() was called.

getClassType static TypeHandle BufferContext::get_class_type(void); Undocumented function.

getDataSizeBytes unsigned int BufferContext::get_data_size_bytes(void) const; Filename: bufferContext.I Created by: drose (16Mar06) 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: Returns the number of bytes previously reported for the data object. This is used to track changes in the data object's allocated size; if it changes from this, we need to create a new buffer. This is also used to track memory utilization in PStats.

getModified UpdateSeq BufferContext::get_modified(void) const; Description: Returns the UpdateSeq that was recorded the last time mark_loaded() was called.

getClassType static TypeHandle SavedContext::get_class_type(void); Undocumented function.

getClassType static TypeHandle TypedObject::get_class_type(void); Undocumented function.

getType virtual TypeHandle TypedObject::get_type(void) const = 0; Derived classes should override this function to return get_class_type().

getTypeIndex int TypedObject::get_type_index(void) const; Description: Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. This is equivalent to get_type().get_index().

isExactType bool TypedObject::is_exact_type(TypeHandle handle) const; Description: Returns true if the current object is the indicated type exactly.

isOfType bool TypedObject::is_of_type(TypeHandle handle) const; Description: Returns true if the current object is or derives from the indicated type.