14 #ifndef LINEPARTICLERENDERER_H 15 #define LINEPARTICLERENDERER_H 37 ParticleRendererAlphaMode alpha_mode);
45 INLINE
void set_head_color(
const LColor& c);
46 INLINE
void set_tail_color(
const LColor& c);
48 INLINE
const LColor& get_head_color()
const;
49 INLINE
const LColor& get_tail_color()
const;
51 INLINE
void set_line_scale_factor(PN_stdfloat sf);
52 INLINE PN_stdfloat get_line_scale_factor()
const;
54 virtual void output(std::ostream &out)
const;
55 virtual void write(std::ostream &out,
int indent_level = 0)
const;
61 PT(
Geom) _line_primitive;
70 PN_stdfloat _line_scale_factor;
72 virtual void birth_particle(
int index);
73 virtual void kill_particle(
int index);
74 virtual void init_geoms();
77 virtual void resize_pool(
int new_size);
84 #endif // LINEPARTICLERENDERER_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>.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
renders a line from last position to current position – good for rain, sparks, etc.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.