How can I use OpenGL in compaq visual fortran

I know a software f90gl written by William F. Mitchell, there are also some examples given, but I don’t know where to find these functions and subroutines’ help documents, who can tell me?

Have you tried searching for f90gl at www.google.com?

I have got the software, but I can’t found any help documents about it, could you tell me where can I get it, thanks.

Originally posted by heiman:
Have you tried searching for f90gl at www.google.com?

Tang,
The documentation on OpenGL with Fortran is limited, but it is out there.

General OpenGL references (C++)-
Redbook in pdf form- http://www.ime.usp.br/~massaro/opengl/redbook/

Redbook Examples http://www.opengl.org/developers/code/examples/redbook/redbook.html

NeHe Fortran Examples- http://nehe.gamedev.net

The first of the tutorials have been ported to Fortran by Jean-Philippe Perois.

You can check out his site as well. http://perso.wanadoo.fr/perois/OpenGL.html

The only thing you really have to do to the compiler at build time is set the link libraries to include f90gl.lib f90glu.lib and f90glaux.lib (those names might not be exactly right, but it sounds like you have the files) Also make sure to put all the .mod files in the include directory and the .lib files in the library file.

Enough babbling.

thanks, if I have any question latter, I will go here again.
PS., I want use it to plot the meshes (points, lines and facets) used in FEM, how would I do to make my program plot and display quickly? thanks.

Tang,
In the red book look under the sections that discuss vertex arrays and display lists. Those are the types of things that speed up the display process.

thanks again!