Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
particle.h
Go to the documentation of this file.
1
#ifndef __PARTICLE_H
2
#define __PARTICLE_H
3
4
#include <vector>
5
#include "
vec.h
"
6
#include "
gfxlib_struct.h
"
7
8
class
ParticlePoint
9
{
10
public
:
11
QVector
loc
;
12
GFXColor
col
;
13
float
size
;
14
//draw and change color...if too dark kill
15
bool
Draw
(
const
Vector
&delta,
const
double
time,
Vector
p,
Vector
q
);
16
};
17
18
class
ParticleTrail
19
{
20
std::vector< Vector >particleVel;
21
std::vector< ParticlePoint >particle;
22
unsigned
int
maxparticles;
23
public
:
ParticleTrail
(
unsigned
int
max
)
24
{
25
ChangeMax
( max );
26
}
27
void
DrawAndUpdate
();
28
void
AddParticle
(
const
ParticlePoint
&,
const
Vector
&,
float
size
);
29
//void PopParticle();not efficient right now
30
void
ChangeMax
(
unsigned
int
max
);
31
};
32
extern
ParticleTrail
particleTrail
;
33
34
#endif
35
src
gfx
particle.h
Generated on Fri May 29 2015 23:07:27 for Vegastrike 0.5.1 rc1 by
1.8.4