overte-lubosz/particle.h

31 lines
533 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"
#define GRAVITY 0.0001
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;
};
#endif