skybu...@hotmail.com
unread,Feb 19, 2020, 11:38:12 PM2/19/20You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
One of the examples I saw did turn of swap_interval to 0 but still used glutSwapBuffers.
I am not sure why it would turn it off, maybe to prevent double waiting or some bug ?
Anyway documentation for glut seems to indicates it indeed flips the buffer when retrace happens:
Slightly annoyed now that yet another library is needed to implement. I think glut is not present by default on systems, it's not default present on windows and might not be installed by graphics driver, so this would be a glut dll that I might need to supply with my app to make it run, the example didn't come with glut so assumed it was already installed, this might be wrong, I can remember apps not working cause glut was not present, maybe windows 95 or so but still, currently on windows 7.
This was kinda the nice thing about opengl, just one dll, always there on all windows versions, but not so with glut. Maybe if I can find glut source code, might be able to duplicate it's functionality, doubt it though, probably something special ;)
"
4.6 glutSwapBuffers
glutSwapBuffers swaps the buffers of the current window if double buffered.
Usage
void glutSwapBuffers(void);
Description
Performs a buffer swap on the layer in use for the current window. Specifically, glutSwapBuffers promotes the contents of the back buffer of the layer in use of the current window to become the contents of the front buffer. The contents of the back buffer then become undefined. The update typically takes place during the vertical retrace of the monitor, rather than immediately after glutSwapBuffers is called.
An implicit glFlush is done by glutSwapBuffers before it returns. Subsequent OpenGL commands can be issued immediately after calling glutSwapBuffers, but are not executed until the buffer exchange is completed.
If the layer in use is not double buffered, glutSwapBuffers has no effect.
"
Bye,
Skybuck.