GLUT fullscreen problem on mac os x

Started by
3 comments, last by guvidu 17 years, 1 month ago
Hi there I have port a game from windows to mac. i used opengl with glut to do it. the only thing is left to do is to make full screen work. i know how to do this but the problem is that it doesnt stretch my window it just place it at 0,0 an after my resolution 640x480 the image is black. i know that glut does this with primary windos so maybe i didnt did it good. i also thied glut game mode but still no luck. same problem there. can you help me with my problem? thanks
Advertisement
glut is very old and isn't updated, and os x has gone through several changes since. Use SDL for crossplatform code instead. It's more up to date, and I can tell you it can enter full screen mode on os x.
Are you using glViewport properly when your window resizes?

This should work fine on OS X.
I would use GLFW instead (glfw.sf.net). It's pretty nice, and easy to use.

(I'm on Mac OS X, and I've written OpenGL code with SDL, Cocoa, Carbon, GLUT and GLFW. I prefer Cocoa, but since it's not cross-platform, GLFW would be my next choice (on Mac, GLFW is carbon underneath, which is native to the Mac, like Cocoa).
Thanks guys - i will try your sugestions.

This topic is closed to new replies.

Advertisement