ROTCUBE(6) — User’s Manual — Games and Demos
NAME
rotcube − rotate a simple cube
SYNOPSIS
/usr/demo/rotcube
DESCRIPTION
Rotcube rotates a skeletal outline of a cube consisting of 14 vectors. Using the SunCore Graphics Package, a 3-D projection is drawn on the Sun Monochrome Bitmap Display. Each rotation consists of 100 views.
During the first rotation, floating point transforms are being done and the resulting lines are converted to integer normalized device coordinates and written to a core-resident display list. At the same time the bitmap device driver converts normalized device coordinates to screen coordinates and draws each line on the screen.
Succeeding rotations are done by reading integer normalized device coordinates from the display list and passing them to the device driver to draw each line. This is considerably faster than the first rotation.
This program gives an indication of the performance of the SunCore Graphics Package.
Type ‘q’ to exit the program.
Sun System Release 0.3 — 22nd February 1983