robert
02-10-2001, 12:18 AM
I may be wrong here, but it looks like visual c++ doesn't like have GLfloats in a struct.
struct Particle {
GLfloat currentX;
GLfloat currentY;
GLfloat currentZ;
GLfloat vx;
GLfloat vy;
GLfloat vz; // Velocity
GLfloat acceleration;// ms/s
GLfloat lifespan;
bool isDead;
};
Hold on, figured it out. Now here's a lesson for me and nyone else. PUT glut.h AT VERY TOP OF YOUR PAGE. hehe i feel stupid.
gl.h was b4 glut.h
struct Particle {
GLfloat currentX;
GLfloat currentY;
GLfloat currentZ;
GLfloat vx;
GLfloat vy;
GLfloat vz; // Velocity
GLfloat acceleration;// ms/s
GLfloat lifespan;
bool isDead;
};
Hold on, figured it out. Now here's a lesson for me and nyone else. PUT glut.h AT VERY TOP OF YOUR PAGE. hehe i feel stupid.
gl.h was b4 glut.h