OpenGL is a library of graphic functions that create
sophisticated graphic displays such as 3-D images and animation. OpenGL is
commonly available on workstations. Writing to this standard allows your
program to be ported easily to other platforms.
OpenGL windows are used independently of and in
addition to any console, QuickWin and regular Windows windows your application
uses. Every window in OpenGL uses a pixel format, and the pixels carry, among
other things, RGB values, opacity values, and depth values so that pixels with
a small depth (shallow) overwrite deeper pixels. The basic steps in creating
OpenGL applications are:
Specify how the pixels will be rendered on the
OpenGL programming is straightforward, but requires a
particular initialization and order, like other software tools. References to
get you started are:
The OpenGL Reference Manual
Addison-Wesley, ISBN 0-201-46140-4.
The OpenGL Programming Guide
Addison-Wesley, ISBN 0-201-46138-2.
OpenGL SuperBible: The Complete Guide to
OpenGL Programming on Windows NT and Windows 95
, Richard Wright and
Michael Sweet, Waite Group Press (Division of Sams Publishing), 1996, ISBN
OpenGL documentation in the Platform SDK title in
HTML Help Viewer.
The OpenGL description from the Microsoft Visual
Microsoft no longer provides the glAux procedures.
Intel Visual Fortran provides an OpenGL module,
IFOPNGL.MOD, invoked with the
When you use this module, all constants and
interfaces that bind Fortran to the OpenGL routines become available. Any link
libraries required to link with an OpenGL program are automatically searched if
is present in your Fortran
An OpenGL window can be opened from a console,
Windows, or QuickWin application. The OpenGL window uses OpenGL calls
exclusively, not normal Graphic Device Interface (GDI) calls. Likewise, OpenGL
calls cannot be made within an ordinary Windows window or QuickWin child
window, because special initialization is required for OpenGL calls.
The Fortran OpenGL identifiers are the same as the C
identifiers (such as using a GL_ prefix for constants), except that the gl
prefix is changed to fgl for routines and identifier lengths are limited to 31
characters . The data types in the OpenGL C binding are translated to Fortran
types as shown in the following table:
GLuint, GLenum, GLbitfield
If you include (
) the parameter constant definitions from
), you can
use the constants to specify the kind type, such as