# GeomContext

from pandac.PandaModules import GeomContext

Class : GeomContext
Description : This is a special class object that holds all the information returned by a particular GSG to indicate the geom's internal context identifier.
Geoms typically have an immediate-mode and a retained-mode operation. When using geoms in retained-mode (in response to Geom::prepare()), the GSG will create some internal handle for the geom and store it here. The geom stores all of these handles internally.
In the case of OpenGL, for example, a GeomContext corresponds to a display list identifier.

## Inheritance:

GeomContext: SavedContext
SavedContext: TypedObject
TypedObject: MemoryBase
MemoryBase:

## Methods of GeomContext:

getClassType
getGeom

## Methods of SavedContext:

getClassType

## Methods of TypedObject:

getClassType
getType
getTypeIndex
isExactType
isOfType

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

getGeom Geom *GeomContext::get_geom(void) const; Description:

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.