Skip to main content
U.S. flag

An official website of the United States government

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

A Fortran 90 Interface for OpenGL: Revised January 1998



William F. Mitchell


It is important to provide a good fortran interface to OpenGL and related libraries for scientific visualization in mathematical software. OpenGL currently provides a fortran interface which can be used by fortran 77 or fortran 90 programs. However, this interface relies upon several extensions to the fortran 77 standard. By using the new features of fortran 90 it is possible to define an interface to OpenGL that does not depend on any extensions to the standard and provides access to the full functionality of OpenGL. This document defines such an interface.
- 6134
Report Number
No. 1


binding, fortran 90, graphics, OpenGL


Mitchell, W. (1998), A Fortran 90 Interface for OpenGL: Revised January 1998, - 6134, National Institute of Standards and Technology, Gaithersburg, MD, [online], (Accessed June 15, 2024)


If you have any questions about this publication or are having problems accessing it, please contact

Created April 1, 1998, Updated November 10, 2018