The OpenGL Interface for Modula-3


Thu May 29 16:23:30 EDT 1997: Headers updated to OpenGL 1.1

The POSIX and WIN32 headers have been updated to added the extra defines and functions of OpenGL 1.1.
This interface was originally generated automatically and touched up by hand. We don't anticipate any errors in these interfaces, which corresponded directly to equivalent .h files on the SGI. Newer additions, such as the OpenGL 1.1 update, were done by hand.

The constants are exactly the same as those in the .h file. While this makes for slightly redundant looking code (ie. GL.GL_EMISSION), it is a consistant interface that corresponds to the C documentation in a straightforward manner. Because all of the GL_ constants are not valid Modula-3 identifiers if the leading GL_ is removed, we would have had to do different things with some constants, which would have required people to look at the interfaces to figure out what a given constant should be. Also note that some of the macro definition are not yet implemented (look in the comments at the tops of the files.) We may implement them as functions some day.


Files: