lmwrap: before-after Iris-to-OpenGL porting module for lmdef() and lmbind()

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


This module's purpose is to enable porting IrisGL's lmdef() and lmbind() calls to OpenGL.

Directories igl and ogl contain the IrisGL and OpenGL versions of the same (simple lighting) program. Both programs use the same sequence of lmdef() and lmbind() calls.

For igl, these are native GL calls whereas for ogl, these are defined locally in the wrapper layer.

ogl/lmwrap.h and ogl/lmwrap.c comprises of the wrapper layer for lighting calls.

The ogl/lmOGL and igl/lmIGL programs display how to this layer for produces the same results.

Notes:

  1. The sphere gets clipped intentionally to show two sided lighting.

  2. Some advanced lighting features (e.g 2 sided lights, spot lights, attentuation ) were not supported on all platforms for IrisGL. So you may not see same results in the 2 sample programs on low end machines.

Yusuf Attarwala
yusuf@sgi.com
April, 1995


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 lmwrap subtree.

Copyright © 1995, Silicon Graphics, Inc.