5 #ifndef PARTICLESYSTEM_H_
6 #define PARTICLESYSTEM_H_
12 #include <irrlicht/irrlicht.h>
14 #include "../lbm/LBM.h"
32 scene::IMeshSceneNode* n = 0 ) :
33 pos( x, y, z ), r( radius ), u( u_x, u_y, u_z ), node( n ) {}
38 node->setPosition( pos );
42 return (p.X - pos.X) * (p.X - pos.X)
43 + (p.Y - pos.Y) * (p.Y - pos.Y)
44 + (p.Z - pos.Z) * (p.Z - pos.Z) < r * r;
50 scene::IMeshSceneNode*
node;
103 inline void updateParticles();
107 inline void emitParticles();
113 void generateBlackBodyColorTable(
float maxTemp );
115 float getTime( timeval &start, timeval &end ) {
116 return (
float) ( end.tv_sec - start.tv_sec )
117 + (
float) ( end.tv_usec - start.tv_usec ) / 1000000.;