GLUT 3.1 dist example src programs

HUB | Up | Download | Pheedbak | Tree | Topic | A-Z | Search | Hot | New


This directory provides 39 example programs
leveraging off GLUT functionality.

NOTE: ../../lib/glut/libglut.a is employed to generate the binaries in this directory. Hence, if you wish to copy over any specific program for the purposes of experiementation and recompilation, you'll need to either

  1. download this entire directory, plus, ../../GL/glut.h, as well as ../../lib/glut/libglut.a.tar.Z, or,
  2. get everything by simply grabbing the entire ../../glut-3.1.tar.Z (1,158,329 bytes) 3.1 version of the GLUT distribution, to get everything that way.

The following programs are available from this examples directory:

  1. abgr: Demonstrates the use of the extension EXT_abgr

  2. bitfont: Renders sample text using builtin GLUT bitmap fonts.

  3. blender: renders two spinning icosahedrons (red and green).

  4. dials: GLUT-version of dials+buttons box confidence test

  5. dials2: GLUT-version of dials+buttons box confidence test, take 2

  6. dinoball: dinosaur with 2 lights

  7. dinospin: mouse-move-able dinosaur

  8. evaltest: GLUT version of evaluator test

  9. fogtst: bare-bones GLUT fog frame test

  10. fontdemo: demos GLUT bitmaps and stroke with 3D perspective fonts

  11. puzzle: GLUT-based version of src/demos/OpenGL/puzzle when it used libaux

  12. glutdino: Port of src/exampleCode/opengl/x+opengl/glxdino to GLUT

  13. Port of src/exampleCode/opengl/x+opengl/paperplane to GLUT

  14. highlight: demonstrates use of the GL lighting model.

  15. lightlab: explores OpenGL's lighting model

  16. mjkwarp: demos texture mapping

  17. molehill: nurbs, lighting, materials, smooth-shading 4-color "molehill" patch

  18. movelight: lighting and modeling transformation study.

  19. oclip: demos arbitrary clipping functionality

  20. ohidden: demos stencil plane functionality, rendering is wireframe.

  21. olight: implements hardware lighting including two_sided lighting.

  22. olympic: Animated 3D rings spin to form the olypmic logo

  23. oversphere: overlay sphere positioning demo

  24. origami: watch a paper plane fold and unfold in real-time

  25. scene: demonstrates use of the GL lighting model

  26. scube: draw a lit spining cube and its shadow

  27. sphere: red and gray sphere in two different windows demonstrating a lot of GLUT functionality

  28. sphere2: Two spheres

  29. splatlogo: splat the mason-woo-commemorative OpenGL lettering logo

  30. spots: implementation of spotlights "swinging about"

  31. stars: galaxy cruzing thru dr. cement's red-dwarf-infested space

  32. stenciltst: performs single-frame blue-square green-intersecting red-triangle

  33. stereo: stereo example using GLUT

  34. stroke: uses GLUT built-in stroke fonts to achieve anti-aliased font rendering

  35. subwin: implements GLUT sub-windows

  36. surfgrid: simple test of polygon offset
        options:
            -f      run on full screen
        keys:
             p       toggle polygon offset
             F       increase polygon offset factor
             f       decrease polygon offset factor
             B       increase polygon offset bias
             b       decrease polygon offset bias
             g       toggle grid drawing
             s       toggle smooth/flat shading
             n       toggle whether to use GL evaluators or GLU nurbs
             u       decr number of segments in U direction
             U       incr number of segments in U direction
             v       decr number of segments in V direction
             V       incr number of segments in V direction
             escape  quit
    

  37. texenv: texture environment

  38. triselect: select test with triangles
        keys:
             Z           Zoom out
             z           zoom in polygon offset factor
             f           perform feedback
             l           toggle triangles between fill and outline
             LEFTARROW   rotate counter-clockwise
             RIGHTARROW  rotate clockwise
             LEFTMOUSE   cycle colors if on top of triangle
             MIDDLEMOUSE move triangle mouse pointer is on towards eye
             RIGHTMOUSE  disappear triangle mouse pointer is on
    

  39. zoomdino: overlay implementation
    
    
    Files of interest from "src/exampleCode/opengl/GLUT/progs/examples" directory
    

    Reference


    Select any combo of files you'd like to send yourself a compressed tar image of. Executables/scripts are indicated with a trailing `*' character. (Depending upon the browser, it may be necessary to hold down the Ctrl key to select/deselect disjoint items.)
    a compressed tar image of the above-selected items.
    OR, ...
    a compressed tar image of the entire examples directory.

    Copyright © 1995-96, Silicon Graphics, Inc.