14 #ifndef SPARKLEPARTICLERENDERER_H 15 #define SPARKLEPARTICLERENDERER_H 26 enum SparkleParticleLifeScale {
36 enum SparkleParticleLifeScale {
45 PN_stdfloat birth_radius,
46 PN_stdfloat death_radius,
47 SparkleParticleLifeScale life_scale,
48 ParticleRendererAlphaMode alpha_mode);
56 INLINE
void set_center_color(
const LColor& c);
57 INLINE
void set_edge_color(
const LColor& c);
58 INLINE
void set_birth_radius(PN_stdfloat radius);
59 INLINE
void set_death_radius(PN_stdfloat radius);
60 INLINE
void set_life_scale(SparkleParticleLifeScale);
62 INLINE
const LColor& get_center_color()
const;
63 INLINE
const LColor& get_edge_color()
const;
64 INLINE PN_stdfloat get_birth_radius()
const;
65 INLINE PN_stdfloat get_death_radius()
const;
66 INLINE SparkleParticleLifeScale get_life_scale()
const;
68 virtual void output(std::ostream &out)
const;
69 virtual void write(std::ostream &out,
int indent_level = 0)
const;
75 PN_stdfloat _birth_radius;
76 PN_stdfloat _death_radius;
78 PT(
Geom) _line_primitive;
84 SparkleParticleLifeScale _life_scale;
90 virtual void birth_particle(
int index);
91 virtual void kill_particle(
int index);
92 virtual void init_geoms();
95 virtual void resize_pool(
int new_size);
102 #endif // SPARKLEPARTICLERENDERER_H PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void write(std::ostream &out, int indent=0) const
Write a string representation of this instance to <out>.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A body on which physics will be applied.
virtual void output(std::ostream &out) const
Write a string representation of this instance to <out>.
This is our own Panda specialization on the default STL vector.
A lightweight class that represents a single element that may be timed and/or counted via stats.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Pure virtual particle renderer base class.
This defines the actual numeric vertex data stored in a Geom, in the structure defined by a particula...
A container for geometry primitives.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Defines a series of disconnected line segments.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
An individual, physically-modelable particle abstract base class.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.