View previous topic :: View next topic |
Author |
Message |
stfark1
Joined: 02 Sep 2008 Posts: 247
|
Posted: Wed Aug 20, 2025 6:25 pm Post subject: GL Graphics 2 |
|
|
Using OpenGL to output graphics in a window as defined below,
i=winio@('%es%ca[Simple OpenGL Example]&')
Am wondering if there is a command, maybe in the "winio@" library, to close the window and revert back to regular coding. I would like to close the window and do regular Fortran i/O but the window stays resident and cannot see the Fortran I/O data. Sid Kraft |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8251 Location: Salford, UK
|
Posted: Thu Aug 21, 2025 6:33 am Post subject: |
|
|
The format code %lw enables you to keep a window open whilst doing other things. The window can be closed by setting an associated integer control to zero. See the help on ClearWin+ for further details.
integer ctrl
iw = winio@("%lw",ctrl)
If this is not the last winio@ call for this window then you must add an ampersand...
iw = winio@("%lw&",ctrl)
To close set...
ctrl = 0 |
|
Back to top |
|
 |
|