Nir This program clamps the texture, if the texture coordinates fall outside 0. A single light source illuminates the objects. The green triangle and biok triangles appear to lie within the viewing volume, but the red triangle appears to lie outside it. After initialization, the program will be in ColorMaterial mode. Then feedback mode is entered, and the same lines are drawn. When the left mouse button is pressed, selection mode is entered with the picking matrix.
|Published (Last):||22 April 2016|
|PDF File Size:||10.67 Mb|
|ePub File Size:||2.27 Mb|
|Price:||Free* [*Free Regsitration Required]|
This program demonstrates when to issue lighting and transformation commands to render a model with a light which is moved by a modeling transformation rotate or translate. Quadric objects are created with some quadric properties and the callback routine to handle errors. Drawing to the screen ceases.
Then the glprobramming mode is entered selectObjects routine. There is no attempt to prevent you from drawing over the original image. This program demonstrates geometric primitives and their attributes. This demonstrates use of the glBitmap call. This program demonstrates use of OpenGL feedback. This program demonstrates how to make and execute a display list.
This program demonstrates lots of material properties. Within this mask, a different model a sphere is drawn in a different color. This program demonstrates vertex arrays. This program draws several overlapping filled polygons to demonstrate the effect order has on alpha blending results. A simple example of using accumulation buffer to anti-alias. This program demonstrates the use of the GL lighting model. This program demonstrates polygon tessellation.
Thus, the quadrilateral which is drawn is drawn with several different colors. The eye position does not change.
Draws the bitmapped letter F on the screen several times. Picking is demonstrated in this program. This program demonstrates arbitrary clipping planes. When the left mouse button is pressed, selection mode is entered with the picking matrix.
The first is a rectangle with a triangular hole. This program demonstrates using mipmaps for texture maps. After initialization, the program will be in ColorMaterial mode. This program demonstrates the creation of a display list. This program demonstrates using glBindTexture by creating and managing two textures.
This program demonstrates the use of the OpenGL lighting model. A sphere is drawn using a grey material characteristic.
GLPROGRAMMING RED BOOK PDF
Multiplies the current matrix by a matrix that moves translates an object by the given x, y, and z values or moves the local coordinate system by the same amounts. Figure : Translating an Object Note that using 0. The angle parameter specifies the angle of rotation in degrees. The effect of glRotatef Figure : Rotating an Object Note that an object that lies farther from the axis of rotation is more dramatically rotated has a larger orbit than an object drawn near the axis. Each x, y, and z coordinate of every point in the object is multiplied by the corresponding argument x, y, or z.
Voodoomi This program renders a wireframe Bezier surface, using two-dimensional evaluators. Objects tlprogramming drawn using a grey material characteristic. The teapots are drawn several times into the accumulation buffer. This program demonstrates some characters of a stroke vector font.
The OpenGL Programming Guide - The Redbook