Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

#ActualvNeeki

Posted 15 February 2012 - 11:59 AM

Hi.

Could it be an issue with GLUT ?

This part :
void timerCallback(int value)
{
        glutPostRedisplay();
        glutTimerFunc(5, timerCallback, 0);
}


Shouldn't be :
int main(int argc, char **argv)
{
        glutInit(&argc, argv);
        glutInitDisplayMode(GLUT_DEPTH | GLUT_DOUBLE | GLUT_RGBA);
        glutInitWindowPosition(300, 300);
        glutInitWindowSize(640, 480);
        int windowHandle = glutCreateWindow("Window");
        glutDisplayFunc(paintGL);
        glutReshapeFunc(changeSize);
        glutTimerFunc(5, timerCallback, 0);
        glutMainLoop();
        glutDestroyWindow(windowHandle);
        return 0;
}

void timerCallback(int value)
{
        glutPostRedisplay();
}


?

#1vNeeki

Posted 15 February 2012 - 11:56 AM

Hi.

Could it be an issue with GLUT ?

PARTNERS