I have some function which are calling from main function.Below is code.
int main(int argc, char *argv[])
{
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE);
glutInitWindowSize (500, 500);
glutInitWindowPosition (100, 100);
glutCreateWindow("Game for Gamers");
glutDisplayFunc(display_func);
glutKeyboardFunc(keyboard);
glutSpecialFunc(special);
glutTimerFunc(50,refreshcheck,0);
glutIdleFunc (animate);
glutReshapeFunc (reshape);
glutMainLoop();
return 0;
}
Here "refreshcheck" is calling first i want to call "refreshcheck" function after execution of "display_func" function.How will schedule it.I want to call "display_func" execute function first when game loaded in memory before "refreshcheck" function, it is not necessary to call "refreshcheck" after "display_func" when game is running, but for first time this is important.