Panda3D
|
Defined as a fix to allow creating Configurable and Writable objects. More...
#include "writableConfigurable.h"
Public Member Functions | |
void | check_config () const |
virtual void | config (void) |
virtual TypeHandle | force_init_type () |
virtual TypeHandle | get_type () const |
bool | is_dirty () const |
void | make_dirty () |
virtual void | write_datagram (BamWriter *, Datagram &)=0 |
Writes the contents of this object to the datagram for shipping out to a Bam file. | |
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. |
Defined as a fix to allow creating Configurable and Writable objects.
Otherwise the compiler gets confused since both TypedWritable and Configurable inherit from TypedObject.
An object that has data or parameters that are set less frequently (at least occasionally) than every frame. We can cache the configuration info by by using the "dirty" flag.
Definition at line 43 of file writableConfigurable.h.
static void WritableConfigurable::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 TypedWritable.
Definition at line 75 of file writableConfigurable.h.
References TypedWritable::init_type(), TypeRegistry::ptr(), and TypeRegistry::record_alternate_name().
virtual void WritableConfigurable::write_datagram | ( | BamWriter * | manager, |
Datagram & | dg | ||
) | [pure virtual] |
Writes the contents of this object to the datagram for shipping out to a Bam file.
Reimplemented from TypedWritable.