Silverfrost Forums

Welcome to our forums

OpenGL

30 Aug 2022 6:04 #29310

Instructions anywhere to use OpenGL commands with SilverFrost Fortran? Sid Kraft

30 Aug 2022 7:56 #29312

Sid, I don't know if you want information on OpenGL itself, or need help with how to build OpenGL code using FTN95. The following is based on assuming that you want the latter.

In %HOMEDRIVE%%HOMEPATH%\Documents\FTN95 Examples\OpenGL, you can find a number of examples and a batch file for building them. Some of the files are over 20 years old, and may need editing to match your set-up.

For example, here is how I built the teapot demo, using FTN95 8.80, on Windows 11-home-64:

ftn95 /64 teapots.for
slink64 teapots.obj c:\Windows\System32\opengl32.dll c:\Windows\System32\glu32.dll
Please login to reply.