LICENSING INFORMATION See 3Dlabs-License.txt for license information OVERVIEW This was a GLUT 3.7-based demo of the OpenGL Shading Language. It includes a vertex shader/fragment shader pair that procedurally generates a brick pattern. These shaders are the shaders that are described in Chapter 6 of the book, OpenGL Shading Language, published by Addison-Wesley. In addition, this demo includes the application source code that is included and described in Chapter 7 of this book. When launched, ogl2brick loads, compiles, and links the brick shaders, then installs them as part of current state. Keyboard commands for this demo are: /* b - Toggle among background clear colors */ /* q, */ - Quit /* t - Toggle among models to render */ /* ? - Help */ /* - reset zoom and rotation */ /* or - stop rotation */ /* <+>, <-> or - zoom model */ m wheel up/down - zoom model /* or - rotate model */ mlbutton + mmove - rotate model /* * Be sure to cycle through the different models (box, teapot, sphere, * torus) using the "t" key in order to see how this shader looks on * different models. */ The application prints various diagnostic and InfoLog messages to the console window when building and applying GLSL shaders. /* * This application can be compiled and linked using the VisualStudio.net * solution file that is included (ogl2brick.sln). */ Under Win32 this app can be compiled at least with VS6 / NET2005 / WATCOM Under Linux there is a problem with NV GLSL compiler. :{ CHANGELOG 18-Mar-2004 : original release 02-Aug-2004 : use GLEW for OpenGL extensions http://glew.sourceforge.net/ 28-Mar-2005 : Modified to use official OpenGL 2.0 API entry points 27-Nov-2006 : Ported to AntiGlut by Vladimir A. Smirnov 19-Jun-2007 : Some code cleanups.