Panda3D
Public Member Functions | Static Public Member Functions

GeomContext Class Reference

This is a special class object that holds all the information returned by a particular GSG to indicate the geom's internal context identifier. More...

Inheritance diagram for GeomContext:
SavedContext TypedObject MemoryBase

List of all members.

Public Member Functions

Geom getGeom ()
TypeHandle getType ()
int getTypeIndex ()
 Returns the internal index number associated with this object's TypeHandle, a unique number for each different type.
bool isExactType (TypeHandle handle)
 Returns true if the current object is the indicated type exactly.
bool isOfType (TypeHandle handle)
 Returns true if the current object is or derives from the indicated type.

Static Public Member Functions

static TypeHandle getClassType ()

Detailed 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.


Member Function Documentation

static TypeHandle getClassType ( ) [static]

Reimplemented from SavedContext.

Geom getGeom ( )
TypeHandle getType ( ) [inherited]

Reimplemented in AnimChannelBase.

int getTypeIndex ( ) [inherited]

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().

bool isExactType ( TypeHandle  handle) [inherited]

Returns true if the current object is the indicated type exactly.

bool isOfType ( TypeHandle  handle) [inherited]

Returns true if the current object is or derives from the indicated type.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties