14#ifndef SPARKLEPARTICLERENDERER_H
15#define SPARKLEPARTICLERENDERER_H
26enum 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);
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Pure virtual particle renderer base class.
virtual void output(std::ostream &out) const
Write a string representation of this instance to <out>.
virtual void write(std::ostream &out, int indent=0) const
Write a string representation of this instance to <out>.
An individual, physically-modelable particle abstract base class.
Defines a series of disconnected line segments.
This defines the actual numeric vertex data stored in a Geom, in the structure defined by a particula...
A container for geometry primitives.
A lightweight class that represents a single element that may be timed and/or counted via stats.
A body on which physics will be applied.
This is our own Panda specialization on the default STL vector.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.