Panda3D
Public Member Functions | Static Public Member Functions | Public Attributes

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

#include "geomContext.h"

Inheritance diagram for GeomContext:
SavedContext TypedObject MemoryBase

List of all members.

Public Member Functions

 GeomContext (Geom *geom)
virtual TypeHandle force_init_type ()
Geomget_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

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.

Definition at line 39 of file geomContext.h.


Member Function Documentation

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


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations