GLUT and VBL syncing in Mac OSX - Printable Version
+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Graphics & Audio Programming (/forum-9.html)
+--- Thread: GLUT and VBL syncing in Mac OSX (/thread-9203.html)
GLUT and VBL syncing in Mac OSX - supersonic - Jul 21, 2011 03:09 AM
i need to enable vertical sync. (because of screen tearing) in my GLUT C++ Mac OS X application...
i did a whole search on this
using aglSetInteger(ctx, AGL_SWAP_INTERVAL, &swapInt)
-> Problem : i cant get the the context, as the aglContext != Glut gl context
-> Question : how to get and use the glut context as the agl context, so i can set the vsync?
or maybe is there some other option, like to vsync with opengl glut on MAC?
GLint sync = 1;
CGLSetParameter(CGLGetCurrentContext(), kCGLCPSwapInterval, &sync);
solved that for me
RE: GLUT and VBL syncing in Mac OSX - Skorche - Jul 21, 2011 06:09 AM
Also, you can set it in the GLUT application's preferences dialog.