Stereoscopic Rendering with OpenGL
The GL stereoscopic library (libgls) allows OpenGL programs to render stereoscopic content in a variety of ways, without depending on OpenGL quad-buffer support. See GLSmode for a list of supported stereoscopic display modes.
All functions need a valid OpenGL context to work properly.
Include the header file:
Create a GLS context:
Render your stereoscopic scene:
Or, if you want to manage the views yourself:
To render left and right view, you need to set up proper projection and modelview matrices to achieve a good stereoscopic effect.
See http://paulbourke.net/stereographics/stereorender/ for more information on this topic.