Voxellancer
0.3
A game about voxels in space
Main Page
Related Pages
Classes
Files
File List
All
Classes
Functions
Pages
voxelparticledata.h
1
#pragma once
2
3
#include <glm/glm.hpp>
4
5
#include <stdint.h>
6
7
struct
VoxelParticleData
{
8
enum class
Status { Removed, Alive, Dead };
9
10
VoxelParticleData
():
11
status(Status::Removed),
12
deathTime(0.0f)
13
{
14
}
15
16
// Extra attribute, not necessarily used by the shader
17
Status status;
18
19
glm::vec3 creationPosition;
20
glm::vec3 creationEulers;
21
glm::vec3 directionalSpeed;
22
glm::vec3 angularSpeed;
23
float
creationTime;
24
float
deathTime;
25
float
scale;
26
uint32_t color;
27
float
emissiveness;
28
};
29
VoxelParticleData
Definition:
voxelparticledata.h:7
src
voxeleffect
voxelparticledata.h
Generated on Sun Mar 30 2014 13:32:32 for Voxellancer by
1.8.6