home *** CD-ROM | disk | FTP | other *** search
/ Enter 2005 March / ENTER.ISO / files / fwp-0.0.6-win32-installer.exe / LightEffectsParticleClusters.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-12-06  |  1.1 KB  |  44 lines

  1. #ifndef __LightEffectsParticleClusters_h__
  2. #define __LightEffectsParticleClusters_h__
  3.  
  4. #include "ParticleCluster.h"
  5. //#include "GameObject.h"
  6. #include "Renderer.h"
  7. #include <list>
  8. using namespace std;
  9.  
  10. class Mesh;
  11. class Vehicle;
  12. class GameObject;
  13.  
  14. class DynamicLightParticleCluster:public ParticleCluster{
  15. public:
  16. //    vec3_t pos;
  17.     GameObject* gameObject;
  18.     vec3_t col;
  19.     ColAnim* colAnim;
  20.     float radius;
  21.     vector<Mesh*> meshes;
  22.     vector<GLfloat*> meshColors;
  23.     list<Vehicle*> vehicles;
  24.     unsigned long nextUpdateMillis;
  25.  
  26.     DynamicLightParticleCluster(vec3_t pos, vec3_t col, float radius, unsigned long lifetime);
  27.     DynamicLightParticleCluster(GameObject* obj, vec3_t col, float radius, unsigned long lifetime);
  28. //    DynamicLightParticleCluster(vec3_t pos, ColAnim colAnim, float radius, unsigned long lifetime);
  29. //    DynamicLightParticleCluster(GameObject* obj, ColAnim colAnim, float radius, unsigned long lifetime);
  30.     ~DynamicLightParticleCluster();
  31.  
  32.     void render();
  33.     void move();
  34.  
  35. protected:
  36.  
  37.     void createAndAssignColors();
  38.     void freeAndRevertColors();
  39.  
  40. };
  41.  
  42.  
  43. #endif    /* __LightEffectsParticleClusters_h__ */
  44.