forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

OpenGL

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Plato
View previous topic :: View next topic  
Author Message
stfark1



Joined: 02 Sep 2008
Posts: 210

PostPosted: Thu May 17, 2018 10:48 pm    Post subject: OpenGL Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7912
Location: Salford, UK

PostPosted: Fri May 18, 2018 7:46 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
stfark1



Joined: 02 Sep 2008
Posts: 210

PostPosted: Fri May 18, 2018 5:06 pm    Post subject: OpenGL Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7912
Location: Salford, UK

PostPosted: Fri May 18, 2018 5:34 pm    Post subject: Reply with quote

Yes it is possible to do that.
Back to top
View user's profile Send private message AIM Address
stfark1



Joined: 02 Sep 2008
Posts: 210

PostPosted: Mon May 21, 2018 4:34 pm    Post subject: Opengl Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7912
Location: Salford, UK

PostPosted: Mon May 21, 2018 4:41 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
John-Silver



Joined: 30 Jul 2013
Posts: 1520
Location: Aerospace Valley

PostPosted: Sat May 26, 2018 6:45 pm    Post subject: Reply with quote

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 ... Smile "
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Plato All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group