PDA

View Full Version : How can I use OpenGL in compaq visual fortran



tang
03-31-2002, 09:31 PM
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?

heiman
04-01-2002, 02:56 AM
Have you tried searching for f90gl at www.google.com? (http://www.google.com?)

tang
04-01-2002, 03:27 PM
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? (http://www.google.com?)

BBrown
04-02-2002, 01:00 PM
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.

tang
04-02-2002, 04:32 PM
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.

BBrown
04-02-2002, 06:12 PM
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.

tang
04-02-2002, 07:12 PM
thanks again!