Multisampling – Hacking FreeGLUT’s default sample count

Both FreeGLUT and GLUT allow us to define an OpenGL context with multisampling. However the number of samples is fixed (4) and I’ve not found a way to change it using the API.

In here we’re going to see how to hack FreeGLUT so that we can change the default number of samples. This can be achieved either by changing the default value, or by adding a new function to set this value.

Note: This hack should be used only for testing purposes, not for redistribution, as FreeGLUT has a large base of users which already have the official version installed.

Read more

GLUT and FreeGLUT

GLUT was conceived by Mark Kilgard with the goal of providing a simple, yet powerful enough, toolkit to deal with the intricacies of the windowing system when building OpenGL applications. In my opinion GLUT was a very effective solution and completely fits the bill. As far as I know, GLUT is still the simplest toolkit … Read more

GLUT Tutorial – New Section

There is a new section on the GLUT tutorial. It introduces the glutPostRedisplay function. This function replaces the idle function, and allows us to save CPU when the application is idle. Full source code is provided as usual.

GLUT Tutorial

The GLUT tutorial now resides in the new version of Lighthouse3D. The tutorial has been fully revised, adding different, and more logical, examples. As always, bugs will be present and I count on you to help me to get rid of them.