Panda3D
|
Applied to a GeomNode to indicate that the children of this GeomNode are coplanar and should be drawn as decals (eliminating Z-fighting). More...
#include "decalEffect.h"
Public Member Functions | |
virtual TypeHandle | force_init_type () |
virtual TypeHandle | get_type () const |
virtual void | write_datagram (BamWriter *manager, Datagram &dg) |
Writes the contents of this object to the datagram for shipping out to a Bam file. | |
Static Public Member Functions | |
static | CPT (RenderEffect) make() |
static TypeHandle | get_class_type () |
static void | init_type () |
static void | register_with_read_factory () |
Tells the BamReader how to create objects of type DecalEffect. | |
Protected Member Functions | |
virtual int | compare_to_impl (const RenderEffect *other) const |
Intended to be overridden by derived DecalEffect types to return a unique number indicating whether this DecalEffect is equivalent to the other one. | |
void | fillin (DatagramIterator &scan, BamReader *manager) |
This internal function is called by make_from_bam to read in all of the relevant data from the BamFile for the new DecalEffect. | |
virtual bool | safe_to_combine () const |
Returns true if this kind of effect can safely be combined with sibling nodes that share the exact same effect, or false if this is not a good idea. | |
Static Protected Member Functions | |
static TypedWritable * | make_from_bam (const FactoryParams ¶ms) |
This function is called by the BamReader's factory when a new object of type DecalEffect is encountered in the Bam file. |
Applied to a GeomNode to indicate that the children of this GeomNode are coplanar and should be drawn as decals (eliminating Z-fighting).
Definition at line 30 of file decalEffect.h.
int DecalEffect::compare_to_impl | ( | const RenderEffect * | other | ) | const [protected, virtual] |
Intended to be overridden by derived DecalEffect types to return a unique number indicating whether this DecalEffect is equivalent to the other one.
This should return 0 if the two DecalEffect objects are equivalent, a number less than zero if this one should be sorted before the other one, and a number greater than zero otherwise.
This will only be called with two DecalEffect objects whose get_type() functions return the same.
Reimplemented from RenderEffect.
Definition at line 62 of file decalEffect.cxx.
void DecalEffect::fillin | ( | DatagramIterator & | scan, |
BamReader * | manager | ||
) | [protected, virtual] |
This internal function is called by make_from_bam to read in all of the relevant data from the BamFile for the new DecalEffect.
Reimplemented from RenderEffect.
Definition at line 118 of file decalEffect.cxx.
Referenced by make_from_bam().
TypedWritable * DecalEffect::make_from_bam | ( | const FactoryParams & | params | ) | [static, protected] |
This function is called by the BamReader's factory when a new object of type DecalEffect is encountered in the Bam file.
It should create the DecalEffect and extract its information from the file.
Definition at line 99 of file decalEffect.cxx.
References fillin().
Referenced by register_with_read_factory().
void DecalEffect::register_with_read_factory | ( | ) | [static] |
Tells the BamReader how to create objects of type DecalEffect.
Definition at line 75 of file decalEffect.cxx.
References BamReader::get_factory(), make_from_bam(), and Factory< Type >::register_factory().
bool DecalEffect::safe_to_combine | ( | ) | const [protected, virtual] |
Returns true if this kind of effect can safely be combined with sibling nodes that share the exact same effect, or false if this is not a good idea.
Reimplemented from RenderEffect.
Definition at line 42 of file decalEffect.cxx.
void DecalEffect::write_datagram | ( | BamWriter * | manager, |
Datagram & | dg | ||
) | [virtual] |
Writes the contents of this object to the datagram for shipping out to a Bam file.
Reimplemented from RenderEffect.
Definition at line 86 of file decalEffect.cxx.