Particle.h
Upload User: sz83729876
Upload Date: 2013-03-07
Package Size: 4140k
Code Size: 1k
Category:

OpenGL program

Development Platform:

Windows_Unix

  1. //
  2. // a64ki
  3. // Copyright (c) 2002 Henrik Carlgren
  4. // http://ziruz.cjb.net
  5. // ziruz@hotpop.com
  6. //
  7. #ifndef particle_h
  8. #define particle_h
  9. //
  10. // INCLUDE FILES
  11. //
  12. #include "vector.h"
  13. //
  14. // CLASS PROTOTYPES
  15. //
  16. class PARTICLE
  17. {
  18. public:
  19. void birth(void);
  20. void update(long double delta);
  21. long double currentAge;
  22. int maximumAge;
  23. int ageRangeMinimum;
  24. int ageRangeMaximum;
  25. VECTOR position;
  26. VECTOR velocity;
  27. VECTOR impulse;
  28. VECTOR color; // red = x, green = y, blue = z
  29. // alpha = 1 - currentAge/maximumAge
  30. VECTOR *targetPosition;
  31. VECTOR *targetVelocity;
  32. VECTOR *targetImpulse;
  33. };
  34. #endif // particle_h