2011-01-05 23:02:10 +01:00
|
|
|
/*
|
|
|
|
* Explosion.h
|
|
|
|
*
|
|
|
|
* Created on: 05.01.2011
|
|
|
|
* Author: gmueller
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef EXPLOSION_H_
|
|
|
|
#define EXPLOSION_H_
|
|
|
|
|
|
|
|
#include "SPK.h"
|
|
|
|
#include "SPK_GL.h"
|
|
|
|
|
2018-11-26 13:15:41 +01:00
|
|
|
namespace gln {
|
|
|
|
|
2011-01-05 23:02:10 +01:00
|
|
|
class Explosion {
|
|
|
|
public:
|
|
|
|
~Explosion();
|
|
|
|
void initialize(GLuint textureExplosion, GLuint textureFlash,
|
|
|
|
GLuint textureSpark, GLuint texturePoint, GLuint textureWave);
|
|
|
|
void add(double x, double y, double z);
|
|
|
|
void update(double dt, double cx, double cy, double cz);
|
|
|
|
void render();
|
|
|
|
private:
|
|
|
|
SPK::SPK_ID system_id;
|
|
|
|
std::list<SPK::System*> particleSystems;
|
|
|
|
};
|
|
|
|
|
2018-11-26 13:15:41 +01:00
|
|
|
} // namespace grln
|
|
|
|
|
2011-01-05 23:02:10 +01:00
|
|
|
#endif /* EXPLOSION_H_ */
|