Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
voxelparticlesetup.h
1 #pragma once
2 
3 #include "geometry/acceleration.h"
4 #include "geometry/speed.h"
5 #include "geometry/transform.h"
6 
7 #include "display/rendering/visuals.h"
8 
9 #include "voxelparticledata.h"
10 
11 
12 /*
13  Setup for a particle used for its spawning by the VoxelParticlewWorld.
14  Note that the VoxelParticlewWorld itsself stores the Particle optimized
15  inside a buffer of VoxelParticleData, which is a data-only-structure
16 */
18 public:
19  VoxelParticleSetup(const Transform& transform, const Visuals& visuals, const Speed& speed, float lifetime);
20 
21  VoxelParticleData toData(float timeSecs) const;
22 
23 
24 protected:
25  Transform m_transform;
26  Visuals m_visuals;
27  Speed m_speed;
28  float m_lifetime;
29 };
Definition: voxelparticledata.h:7
Definition: transform.h:9
Definition: visuals.h:11
Definition: abstractmove.h:5
Definition: voxelparticlesetup.h:17