Panda3D
pointParticle.h
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file pointParticle.h
10  * @author charles
11  * @date 2000-06-19
12  */
13 
14 #ifndef POINTPARTICLE_H
15 #define POINTPARTICLE_H
16 
17 #include "baseParticle.h"
18 
19 /**
20  * Describes a particle that requires representation by a point (pixel,
21  * sparkle, billboard)
22  */
23 class EXPCL_PANDA_PARTICLESYSTEM PointParticle : public BaseParticle {
24 public:
25  PointParticle(PN_stdfloat lifespan = 0.0f, bool alive = false);
26  PointParticle(const PointParticle &copy);
27  virtual ~PointParticle();
28 
29  virtual void init();
30  virtual void die();
31  virtual void update();
32 
33  virtual PhysicsObject *make_copy() const;
34 
35  virtual void output(std::ostream &out) const;
36  virtual void write(std::ostream &out, int indent=0) const;
37 };
38 
39 #endif // POINTPARTICLE_H
virtual PhysicsObject * make_copy() const =0
dynamic copy.
Describes a particle that requires representation by a point (pixel, sparkle, billboard)
Definition: pointParticle.h:23
A body on which physics will be applied.
Definition: physicsObject.h:27
virtual void output(std::ostream &out) const
Write a string representation of this instance to <out>.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
Definition: indent.cxx:20
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.
Definition: baseParticle.h:23