gnu.app.redbook
Class TextureTeapot
java.lang.Object
gnu.app.Application
gnu.x11.Application
gnu.x11.extension.glx.Application
gnu.app.redbook.TextureTeapot
public class TextureTeapot
- extends Application
Texture map teapot. To demonstrate how to draw a texture mapped teapot
with automatically generated texture coordinates. The texture is
rendered as stripes on the teapot. Initially, the object is drawn with
texture coordinates based upon the object coordinates of the vertex and
distance from the plane x = 0. Modified from texgen.c
.
- To use eye-coordinate, press 'e' or 'E'.
- To use object-coordinate, press 'o' or 'O'.
- To use a slanted plane, press 's' or 'S'.
- To use a yz-plane, press 'x' or 'X'.
- See Also:
-
screenshot 4,
help output
Method Summary |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextureTeapot
public TextureTeapot(java.lang.String[] args)
main
public static void main(java.lang.String[] args)