Index of /classes/opengl/examples/texture
Name Last modified Size Description
Parent Directory 19-Jun-1999 10:32 -
Makedepend 07-Jun-1999 10:20 2k
Makefile 05-Jun-1999 22:59 1k
Makefile.win 05-Jun-1999 22:59 1k
bricks.rgb 05-Jun-1999 22:59 50k
fish.rgba 05-Jun-1999 22:59 92k
maxHeadroom.rgb 05-Jun-1999 22:59 97k
mipmap 07-Jun-1999 10:20 121k
mipmap.c 05-Jun-1999 22:59 8k
texenv 07-Jun-1999 10:20 121k
texenv.c 05-Jun-1999 22:59 8k
texgen1 07-Jun-1999 10:20 127k
texgen1.c 05-Jun-1999 22:59 6k
texgen2 07-Jun-1999 10:20 120k
texgen2.c 05-Jun-1999 22:59 5k
texture 07-Jun-1999 10:20 121k
texture.c 05-Jun-1999 22:59 6k
tree.rgba 05-Jun-1999 22:59 41k
~opengl/examples/texture README
Copyright 1991-1999, Silicon Graphics, Inc.
All Rights Reserved.
A collection of programs demonstrating basic texture
mapping using OpenGL.
texture.c
Reads in a texture from a .rgb file, sets up the texture and the
texture environment, then applies the texture to a rectangular
polygon using explicit texture coordinates.
Escape key - exits the program
mipmap.c
Reads in a texture from a .rgb file, uses the opengl utility
library routine gluBulid2dMipmaps() to scale and load mipmaps
for a single texture image, then applies the texture to a
rectangular polygon using explicit texture coordinates.
<a> key - pause/restart movement
<m> key - cycle minification filter
<M> key - cycle Magnification filter
<R> key - reset image to starting position
Escape Key - exit program
texenv.c
This program demonstrates the texture environment modes.
It reads in a texture from a .rgb(a) file, and
applies it as a texture to a rectangular polygon using explicit
texture coordinates.
The environment modes can be changed interactively.
alphaFunc and blending can be used to make the parts of the
rectangle outside the fish image transparent wherever the
fish.rgba file has low alpha values.
<a> Key - toggle alpha test on/off
<b> Key - toggle blending on/off
<c> Key - toggle polygon color between white/red
<e> key - cycle through environment modes
Escape key - exit the program
texgen1.c
This program demonstrates texture coordinate generation.
The coordinate generation mode can be changed interactively
between object and eye linear.
<a> Key - toggle animation on/off
<g> Key - toggle between eye and object linear modes
Escape key - exit the program
texgen2.c
This program demonstrates GLU quadric texture coordinate
generation.
<a> Key - toggle animation on/off
Escape key - exit the program