At first the download wouldn;t work for me. I just looked at it then and it is quite a mess. If you organize things the way Jeremy G suggested it will make development easier.
>>For some reason the FPS moves with everything else. Don't really know why, prolly something really simple I missed.
You need to go into a orthographic prjection before drawing the fps
glOrtho()
eg:
Code:
void glEnable2D(void)
{
int vPort[4];
glGetIntegerv(GL_VIEWPORT, vPort);
glMatrixMode(GL_PROJECTION);
glPushMatrix();
glLoadIdentity();
glOrtho(0,vPort[2],0,vPort[3], -1, 1);
glMatrixMode(GL_MODELVIEW);
glPushMatrix();
glLoadIdentity();
}
void glDisable2D(void)
{
glMatrixMode(GL_PROJECTION);
glPopMatrix();
glMatrixMode(GL_MODELVIEW);
glPopMatrix();
}