Panda3D
|
Pure virtual particle renderer base class. More...
#include "baseParticleRenderer.h"
Public Member Functions | |
virtual | ~BaseParticleRenderer () |
Destructor. More... | |
ParticleRendererAlphaMode | get_alpha_mode () const |
bool | get_ignore_scale () const |
Returns the "ignore scale" flag. More... | |
GeomNode * | get_render_node () const |
Query the geomnode pointer. More... | |
NodePath | get_render_node_path () const |
Query the geomnode pointer. More... | |
PN_stdfloat | get_user_alpha () const |
gets alpha for "user" alpha mode More... | |
virtual BaseParticleRenderer * | make_copy ()=0 |
virtual void | output (ostream &out) const |
Write a string representation of this instance to <out>. More... | |
void | set_alpha_mode (ParticleRendererAlphaMode am) |
void | set_color_blend_mode (ColorBlendAttrib::Mode bm, ColorBlendAttrib::Operand oa=ColorBlendAttrib::O_zero, ColorBlendAttrib::Operand ob=ColorBlendAttrib::O_zero) |
sets the ColorBlendAttrib on the _render_node More... | |
void | set_ignore_scale (bool ignore_scale) |
Sets the "ignore scale" flag. More... | |
void | set_user_alpha (PN_stdfloat ua) |
sets alpha for "user" alpha mode More... | |
virtual void | write (ostream &out, int indent=0) const |
Write a string representation of this instance to <out>. More... | |
![]() | |
int | get_ref_count () const |
Returns the current reference count. More... | |
WeakReferenceList * | get_weak_list () const |
Returns the WeakReferenceList associated with this ReferenceCount object. More... | |
bool | has_weak_list () const |
Returns true if this particular ReferenceCount object has a WeakReferenceList created, false otherwise. More... | |
void | local_object () |
This function should be called, once, immediately after creating a new instance of some ReferenceCount-derived object on the stack. More... | |
void | ref () const |
Explicitly increments the reference count. More... | |
bool | test_ref_count_integrity () const |
Does some easy checks to make sure that the reference count isn't completely bogus. More... | |
bool | test_ref_count_nonzero () const |
Does some easy checks to make sure that the reference count isn't zero, or completely bogus. More... | |
virtual bool | unref () const |
Explicitly decrements the reference count. More... | |
void | weak_ref (WeakPointerToVoid *ptv) |
Adds the indicated PointerToVoid as a weak reference to this object. More... | |
void | weak_unref (WeakPointerToVoid *ptv) |
Removes the indicated PointerToVoid as a weak reference to this object. More... | |
Friends | |
class | ParticleSystem |
Additional Inherited Members | |
![]() | |
static TypeHandle | get_class_type () |
static void | init_type () |
Pure virtual particle renderer base class.
Definition at line 34 of file baseParticleRenderer.h.
|
virtual |
|
inline |
Returns the "ignore scale" flag.
See set_ignore_scale().
Definition at line 99 of file baseParticleRenderer.I.
Referenced by set_color_blend_mode().
|
inline |
Query the geomnode pointer.
Definition at line 21 of file baseParticleRenderer.I.
References get_render_node_path().
Referenced by SpriteParticleRenderer::add_from_node(), LineParticleRenderer::make_copy(), SparkleParticleRenderer::make_copy(), PointParticleRenderer::make_copy(), GeomParticleRenderer::make_copy(), and SpriteParticleRenderer::~SpriteParticleRenderer().
|
inline |
Query the geomnode pointer.
Definition at line 31 of file baseParticleRenderer.I.
References set_user_alpha().
Referenced by get_render_node().
|
inline |
gets alpha for "user" alpha mode
Definition at line 70 of file baseParticleRenderer.I.
References set_color_blend_mode().
Referenced by SpriteParticleRenderer::add_from_node(), LineParticleRenderer::make_copy(), SparkleParticleRenderer::make_copy(), PointParticleRenderer::make_copy(), GeomParticleRenderer::make_copy(), and set_user_alpha().
|
virtual |
Write a string representation of this instance to <out>.
Reimplemented in SpriteParticleRenderer, PointParticleRenderer, SparkleParticleRenderer, GeomParticleRenderer, and LineParticleRenderer.
Definition at line 96 of file baseParticleRenderer.cxx.
References write().
Referenced by set_ignore_scale().
|
inline |
sets the ColorBlendAttrib on the _render_node
Definition at line 80 of file baseParticleRenderer.I.
References get_ignore_scale().
Referenced by get_user_alpha().
void BaseParticleRenderer::set_ignore_scale | ( | bool | ignore_scale | ) |
Sets the "ignore scale" flag.
When this is true, particles will be drawn as if they had no scale, regardless of whatever scale might be inherited from above the render node in the scene graph.
This flag is mainly useful to support legacy code that was written for a very early version of Panda, whose sprite particle renderer had a bug that incorrectly ignored the inherited scale.
Definition at line 79 of file baseParticleRenderer.cxx.
References output().
Referenced by ~BaseParticleRenderer().
|
inline |
sets alpha for "user" alpha mode
Definition at line 60 of file baseParticleRenderer.I.
References get_user_alpha().
Referenced by get_render_node_path().
|
virtual |
Write a string representation of this instance to <out>.
Reimplemented in SpriteParticleRenderer, PointParticleRenderer, SparkleParticleRenderer, GeomParticleRenderer, and LineParticleRenderer.
Definition at line 109 of file baseParticleRenderer.cxx.
Referenced by output(), LineParticleRenderer::write(), GeomParticleRenderer::write(), PointParticleRenderer::write(), SparkleParticleRenderer::write(), and SpriteParticleRenderer::write().