View previous topic :: View next topic |
Author |
Message |
stfark1
Joined: 02 Sep 2008 Posts: 210
|
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: 7927 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: 210
|
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: 7927 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: 210
|
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: 7927 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 |
|
|
John-Silver
Joined: 30 Jul 2013 Posts: 1520 Location: Aerospace Valley
|
Posted: Sat May 26, 2018 6:45 pm Post subject: |
|
|
The use/conversion of a RedBook example is given a run-through here, go to the middle link (and don't forget the further links right at the bottom of that page too.
https://silverfrost.com/ftn95-help/clearwinp/opengl/helpcontents1.aspx _________________ ''Computers (HAL and MARVIN excepted) are incredibly rigid. They question nothing. Especially input data.Human beings are incredibly trusting of computers and don't check input data. Together cocking up even the simplest calculation ... " |
|
Back to top |
|
|
|