Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
particle.h
Go to the documentation of this file.
1 #ifndef __PARTICLE_H
2 #define __PARTICLE_H
3 
4 #include <vector>
5 #include "vec.h"
6 #include "gfxlib_struct.h"
7 
9 {
10 public:
13  float size;
14 //draw and change color...if too dark kill
15  bool Draw( const Vector &delta, const double time, Vector p, Vector q );
16 };
17 
19 {
20  std::vector< Vector >particleVel;
21  std::vector< ParticlePoint >particle;
22  unsigned int maxparticles;
23 public: ParticleTrail( unsigned int max )
24  {
25  ChangeMax( max );
26  }
27  void DrawAndUpdate();
28  void AddParticle( const ParticlePoint&, const Vector&, float size );
29 //void PopParticle();not efficient right now
30  void ChangeMax( unsigned int max );
31 };
33 
34 #endif
35