Panda3D
|
pretty sparkly things. More...
#include "sparkleParticleRenderer.h"
Public Types | |
enum | SparkleParticleLifeScale { SP_NO_SCALE, SP_SCALE } |
![]() | |
enum | ParticleRendererAlphaMode { PR_ALPHA_NONE, PR_ALPHA_OUT, PR_ALPHA_IN, PR_ALPHA_IN_OUT, PR_ALPHA_USER, PR_NOT_INITIALIZED_YET } |
enum | ParticleRendererBlendMethod { PP_NO_BLEND, PP_BLEND_LINEAR, PP_BLEND_CUBIC } |
Public Member Functions | |
SparkleParticleRenderer () | |
Default Constructor. More... | |
SparkleParticleRenderer (const SparkleParticleRenderer ©) | |
Copy Constructor. More... | |
SparkleParticleRenderer (const LColor ¢er, const LColor &edge, PN_stdfloat birth_radius, PN_stdfloat death_radius, SparkleParticleLifeScale life_scale, ParticleRendererAlphaMode alpha_mode) | |
Constructor. More... | |
virtual | ~SparkleParticleRenderer () |
Destructor. More... | |
PN_stdfloat | get_birth_radius () const |
const LColor & | get_center_color () const |
PN_stdfloat | get_death_radius () const |
const LColor & | get_edge_color () const |
SparkleParticleLifeScale | get_life_scale () const |
virtual BaseParticleRenderer * | make_copy () |
child virtual for spawning systems More... | |
virtual void | output (ostream &out) const |
Write a string representation of this instance to <out>. More... | |
void | set_birth_radius (PN_stdfloat radius) |
void | set_center_color (const LColor &c) |
void | set_death_radius (PN_stdfloat radius) |
void | set_edge_color (const LColor &c) |
void | set_life_scale (SparkleParticleLifeScale) |
virtual void | write (ostream &out, int indent_level=0) const |
Write a string representation of this instance to <out>. More... | |
![]() | |
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... | |
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... | |
![]() | |
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... | |
Additional Inherited Members | |
![]() | |
static TypeHandle | get_class_type () |
static void | init_type () |
pretty sparkly things.
Definition at line 36 of file sparkleParticleRenderer.h.
SparkleParticleRenderer::SparkleParticleRenderer | ( | ) |
Default Constructor.
Definition at line 31 of file sparkleParticleRenderer.cxx.
Referenced by make_copy(), and SparkleParticleRenderer().
SparkleParticleRenderer::SparkleParticleRenderer | ( | const SparkleParticleRenderer & | copy | ) |
Copy Constructor.
Definition at line 63 of file sparkleParticleRenderer.cxx.
References ~SparkleParticleRenderer().
SparkleParticleRenderer::SparkleParticleRenderer | ( | const LColor & | center, |
const LColor & | edge, | ||
PN_stdfloat | birth_radius, | ||
PN_stdfloat | death_radius, | ||
SparkleParticleLifeScale | life_scale, | ||
ParticleRendererAlphaMode | alpha_mode | ||
) |
Constructor.
Definition at line 46 of file sparkleParticleRenderer.cxx.
References SparkleParticleRenderer().
|
virtual |
Destructor.
Definition at line 80 of file sparkleParticleRenderer.cxx.
References make_copy().
Referenced by SparkleParticleRenderer().
|
virtual |
child virtual for spawning systems
Implements BaseParticleRenderer.
Definition at line 89 of file sparkleParticleRenderer.cxx.
References GeomVertexWriter::add_data3(), GeomVertexWriter::add_data4(), GeomNode::add_geom(), PhysicsObject::get_position(), BaseParticleRenderer::get_render_node(), BaseParticleRenderer::get_user_alpha(), output(), GeomNode::remove_all_geoms(), and SparkleParticleRenderer().
Referenced by ~SparkleParticleRenderer().
|
virtual |
Write a string representation of this instance to <out>.
Reimplemented from BaseParticleRenderer.
Definition at line 290 of file sparkleParticleRenderer.cxx.
References write().
Referenced by make_copy().
|
virtual |
Write a string representation of this instance to <out>.
Reimplemented from BaseParticleRenderer.
Definition at line 303 of file sparkleParticleRenderer.cxx.
References BaseParticleRenderer::write().
Referenced by output().