Silverfrost Forums

Welcome to our forums

OpenGL

17 May 2018 9:48 #22138

Running a large program using Silverfrost Fortran and Plato. Also have a plot routine that takes the output from this large program and plots it using C++ and OpenGL. Is there a similar interface in Silverfrost Fortran to do the plotting through OpenGL? Any advise will help

18 May 2018 6:46 #22139

OpenGL can be accessed from an FTN95 program using ClearWin+. It requires a call to the function winio@ with a 'format code' of %og. For details select ClearWin+ from the Plato help menu.

18 May 2018 4:06 #22142

Thanks Paul, will it enable one to program in Silverfrost Fortran to do calls to OpenGL and perform the graphic functions? Sid

18 May 2018 4:34 #22143

Yes it is possible to do that.

21 May 2018 3:34 #22155

In the Plato help tutorial, the Opengl subset talks about fortran samples in the redbook. How does one get access to this material or sample fortran calls using Opengl?

21 May 2018 3:41 #22156

By default, FTN95 samples are installed here... C:\Users\xxxx\Documents\FTN95 Examples\OpenGL.

The 'OpenGL Programming Guide' is available in PDF form online. Just search online.

Please login to reply.