Panda3D
|
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...
#include "geomContext.h"
Public Member Functions | |
GeomContext (Geom *geom) | |
virtual TypeHandle | force_init_type () |
Geom * | get_geom () const |
virtual TypeHandle | get_type () const |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. | |
Public Attributes | |
Geom * | _geom |
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.
Definition at line 39 of file geomContext.h.
static void GeomContext::init_type | ( | ) | [inline, static] |
This function is declared non-inline to work around a compiler bug in g++ 2.96.
Making it inline seems to cause problems in the optimizer.
Reimplemented from SavedContext.
Definition at line 56 of file geomContext.h.
References SavedContext::init_type().