14 #ifndef POINTPARTICLERENDERER_H
15 #define POINTPARTICLERENDERER_H
35 enum PointParticleBlendType {
43 PN_stdfloat point_size = 1.0f,
44 PointParticleBlendType bt = PP_ONE_COLOR,
45 ParticleRendererBlendMethod bm = PP_NO_BLEND,
46 const LColor& sc = LColor(1.0f, 1.0f, 1.0f, 1.0f),
47 const LColor& ec = LColor(1.0f, 1.0f, 1.0f, 1.0f));
55 INLINE
void set_point_size(PN_stdfloat point_size);
56 INLINE
void set_start_color(
const LColor& sc);
57 INLINE
void set_end_color(
const LColor& ec);
58 INLINE
void set_blend_type(PointParticleBlendType bt);
59 INLINE
void set_blend_method(ParticleRendererBlendMethod bm);
61 INLINE PN_stdfloat get_point_size()
const;
62 INLINE
const LColor& get_start_color()
const;
63 INLINE
const LColor& get_end_color()
const;
64 INLINE PointParticleBlendType get_blend_type()
const;
65 INLINE ParticleRendererBlendMethod get_blend_method()
const;
67 virtual void output(std::ostream &out)
const;
68 virtual void write(std::ostream &out,
int indent_level = 0)
const;
73 PN_stdfloat _point_size;
76 PT(
Geom) _point_primitive;
82 PointParticleBlendType _blend_type;
83 ParticleRendererBlendMethod _blend_method;
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 points.
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.
Simple point/point particle renderer.
This is the base class for a number of render attributes (other than transform) that may be set on sc...
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.