Panda3D

pointParticle.h

00001 // Filename: pointParticle.h
00002 // Created by:  charles (19Jun00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #ifndef POINTPARTICLE_H
00016 #define POINTPARTICLE_H
00017 
00018 #include "baseParticle.h"
00019 
00020 ////////////////////////////////////////////////////////////////////
00021 //       Class : PointParticle
00022 // Description : Describes a particle that requires representation
00023 //               by a point (pixel, sparkle, billboard)
00024 ////////////////////////////////////////////////////////////////////
00025 class EXPCL_PANDAPHYSICS PointParticle : public BaseParticle {
00026 public:
00027   PointParticle(PN_stdfloat lifespan = 0.0f, bool alive = false);
00028   PointParticle(const PointParticle &copy);
00029   virtual ~PointParticle();
00030 
00031   virtual void init();
00032   virtual void die();
00033   virtual void update();
00034 
00035   virtual PhysicsObject *make_copy() const;
00036 
00037   virtual void output(ostream &out) const;
00038   virtual void write(ostream &out, int indent=0) const;
00039 };
00040 
00041 #endif // POINTPARTICLE_H
 All Classes Functions Variables Enumerations