From: dussault <dussault@dmi.usherb.ca>
Subject: Re: Some thoughts about Sather---OpenGL
Date: Wed, 06 Dec 2000 16:10:00
Newsgroups: comp.lang.sather

I have partially wrapped OpenGL functions (and glu and glut), but since we are
working on some aspects regarding textures these days, I still wait a few
weeks (months?) to make available this work, together with a much more
abstract 3D library and some decent documentation.

OpenGL is not only a sort of windowing model, but is a privileged interface to
3D hardware accelerators. In Linux, if you want 3D hardware acceleration, I'm
afraid you can't avoid OpenGL/Mesa.

A long dated version of the library I used in courses in fall 99 may be
browsed at http://www.DMI.USherb.CA/~dussault/htmlP/

the relevant module for OpenGL wrappers is "ClotureGlut", and the relevant
classes are
    OGL        the sather interface to OpenGL
    C_OGL    the c bindings
    OGL_CONST   the constants used by OpenGL

    GLUT        the sather interface to glut
    C_GLUT    the c bindings
    GLUT_CONST    the constants used by glut

I add entries in OGL/C_OGL and GLUT/C_GLUT as needed, so the public version is
NOT complete. The constants were automatically generated from GL.h and glut.h,
and are almost complete (we presently use a more recent version of OpenGL
which added several constants corresponding to new options available).

The classes are poorly documented; that is the reason I do not wish to make
the library public at this stage.
