Original Post
Hello, I am newbies to this website and also openGL. I just start to learn openGL recently and I have some reshaping question. So in my main function, I have so right button menu f_menu = glutCreateMenu(fileMenu); glutAddMenuEntry("box",1); And in my fileMenu function, when the choice equals to 1, (which is Menu1), I make it go to another function. void fileMenu(int id) { if (id == 1) drawBox(); } void drawBox() { glColor3f(0.0,0.0,0.0); glutSolidCube(1); glFlush(); } in which drawBox() draws box. It seems like it works but the problem is that the box shows up only like a sec (like flashing) then show me the stuff display() So what I mean is that whenever I try to draw box when user chooses box menu (in right clicked menu), it shows only for a sec (flashing) and then just return display and I am not sure why. Could you help me? Thank you.