23 lines
435 B
C++
23 lines
435 B
C++
#ifndef __PARTICLE_H
|
|
#define __PARTICLE_H
|
|
|
|
#include "vector.hpp"
|
|
#include "picture.hpp"
|
|
#include "camera.hpp"
|
|
|
|
typedef struct
|
|
{
|
|
int n;
|
|
int* life;
|
|
Vector* pos;
|
|
Vector* vel;
|
|
Vector origin;
|
|
} ParticleEngine;
|
|
|
|
void ParticleEngineCreate(ParticleEngine*, int, float, float, float);
|
|
void ParticleEngineRender(ParticleEngine*, Camera*);
|
|
void ParticleEngineUpdate(ParticleEngine*);
|
|
|
|
#endif
|
|
|
|
|