overte-JulianGro/particle.h
2012-09-05 16:01:42 -07:00

30 lines
550 B
C++

//
// particle.h
// interface
//
// Created by Seiji Emery on 9/4/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#ifndef interface_particle_h
#define interface_particle_h
#include <glm/glm.hpp>
class ParticleSystem {
public:
void simulate (float deltaTime);
void draw ();
private:
struct Particle {
glm::vec3 position, velocity;
} *particles;
unsigned int particleCount;
glm::vec3 bounds;
const static bool wrapBounds = false;
const static float gravity = 0.0001;
};
#endif