Voxellancer
0.3
A game about voxels in space
Main Page
Related Pages
Classes
Files
File List
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
*/
17
class
VoxelParticleSetup
{
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
};
VoxelParticleData
Definition:
voxelparticledata.h:7
Transform
Definition:
transform.h:9
Visuals
Definition:
visuals.h:11
AbstractMove
Definition:
abstractmove.h:5
VoxelParticleSetup
Definition:
voxelparticlesetup.h:17
src
voxeleffect
voxelparticlesetup.h
Generated on Sun Mar 30 2014 13:32:32 for Voxellancer by
1.8.6