View previous topic :: View next topic |
Author |
Message |
stfark1
Joined: 02 Sep 2008 Posts: 246
|
Posted: Wed Aug 06, 2025 4:23 pm Post subject: GL Graphics |
|
|
Where does one find the "Call" routines for the GL Graphics library, i.e. "Call glRotatef(Angle,x,y,x)" ? Sid Kraft |
|
Back to top |
|
 |
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2406 Location: Yateley, Hants, UK
|
Posted: Wed Aug 06, 2025 5:52 pm Post subject: |
|
|
Sid asks an interesting question.
Wouldn't it be nice if some regular user of OpenGL wrote a beginners' guide to OpenGL with FTN95?
Even better, if there was a similarly charitable soul who did the same for %pl. |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8240 Location: Salford, UK
|
Posted: Thu Aug 07, 2025 7:13 am Post subject: |
|
|
OpenGL
---------
In the help file ftn95.chm (accessible via the Plato help menu) go to ClearWin+ then OpenGL. This introduces the subject and points you to the "Red" book and the "Blue" book; also other online links.
%pl
-----
1) In the help file go to ClearWin+, then SIMPLEPLOT then Native graph plotting.
2) There is a comprehensive ClearWin+ sample program in the "FTN95 Examples" typically installed on your machine at C:\Users\*****\OneDrive\Documents\FTN95 Examples\Win32\clearwin\demo.f95
(Replace ***** by your machine name)
3) Youtube videos can be accessed at
a) https://www.youtube.com/watch?v=5SwhDmHNq7o&t=40s
b) https://www.youtube.com/watch?v=ycuI2u31cwk
See also https://www.silverfrost.com/59/ftn95/videos.aspx |
|
Back to top |
|
 |
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2406 Location: Yateley, Hants, UK
|
Posted: Thu Aug 07, 2025 8:52 am Post subject: |
|
|
Blimey, Paul, you are up and at it early in the morning!
Yes, the helpfile contents are useful if you are looking for help on things you already know about. But you wouldn't say that FTN95.CHM is enough to start an absolute beginner on programming in Fortran, would you, no matter how comprehensive it is as a resource to someone who programs in Fortran and just wants to know the finer details of what is usually an FTN95 extension.
As for OpenGL, what, for example, is The Red Book and where does one find it? A Google search for 'The Red Book' throws up Carl Gustave Jung's book, and I'm pretty sure that isn't it. If one gets past that (and psychoanalysis might be the answer to the sort of lunatic programming in Fortran in their late 70s) then you get to traffic management, Chairman Mao's thoughts, and 'a thriller'. (Perhaps copies of one of the listed references might be the answer. I'll look.)
My comment wasn't intended to be curmudgeonly about the CHM file, but rather a throwaway in the faint hope that some knowledgeable user might just while away some idle hours writing something for the absolute beginner.
As for %pl, your work replacing the original palaeo-Simpleplot, gone the way of dinosaurs and present only in the fossil form, with something up to date, and fully compatible with all variants of FTN95 is greatly appreciated. Again, not for the absolute beginner - or one whose graph plotting has been done as a pattern of lines in programs some dating back over a half century.
I do subscribe to the view that it is possible to teach old dogs new tricks, but one has to start simple.
best wishes
Eddie |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8240 Location: Salford, UK
|
Posted: Thu Aug 07, 2025 12:34 pm Post subject: |
|
|
Eddie
I understood the desire for simple documentation but I wanted to at least post some information about possible sources.
I think the recorded hour of my post is wrong. It's probably GMT.
The videos might help some users, particularly the one on %pl by Kenneth Smith.
The "OpenGL Programming Guide" (aka the Red book) is available online from second hand bookshops for as little as �5.29. |
|
Back to top |
|
 |
Kenneth_Smith
Joined: 18 May 2012 Posts: 830 Location: Lanarkshire, Scotland.
|
|
Back to top |
|
 |
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2406 Location: Yateley, Hants, UK
|
Posted: Thu Aug 07, 2025 2:21 pm Post subject: |
|
|
Many thanks Paul and Ken.
I found OpenGL: A primer by Edward Angel at �3.15 on Amazon. It's the 2001 1st edition, not the revised 2007 edition. It may do.
Ken,
Your PDF is exactly what I was thinking of. Hopefully, you will find time to expand it.
Eddie |
|
Back to top |
|
 |
|