Metroworks & GL Drawing problem?


I have a problem rendering OpenGL with Mac OSX using Codewarrior. I’m trying to do some simple drawing, boxes, fans, etc, but the problem is that my screen won’t redraw unless I drag another window over it. I’m assuming this has something to do with the glutDisplayFunc, but I can’t figure it out. I don’t have the same problem if I process mouse or button events. I’ve tried using double buffering, but nothing really seems to consistently work. Suggestions?

You are calling glutSwapBuffers, right?

Is this a Mach-O project using Apple’s GLUT framework or a CFM one using the Carbon GLUT from the CFM OpenGL SDK?

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.