View previous topic :: View next topic |
Author |
Message |
stfark1
Joined: 02 Sep 2008 Posts: 242
|
Posted: Thu May 17, 2018 10:48 pm Post subject: OpenGL |
|
|
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 |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Fri May 18, 2018 7:46 am Post subject: |
|
|
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. |
|
Back to top |
|
 |
stfark1
Joined: 02 Sep 2008 Posts: 242
|
Posted: Fri May 18, 2018 5:06 pm Post subject: OpenGL |
|
|
Thanks Paul, will it enable one to program in Silverfrost Fortran to do calls to OpenGL and perform the graphic functions? Sid |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Fri May 18, 2018 5:34 pm Post subject: |
|
|
Yes it is possible to do that. |
|
Back to top |
|
 |
stfark1
Joined: 02 Sep 2008 Posts: 242
|
Posted: Mon May 21, 2018 4:34 pm Post subject: Opengl |
|
|
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? |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Mon May 21, 2018 4:41 pm Post subject: |
|
|
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. |
|
Back to top |
|
 |
|