Silverfrost Forums

Welcome to our forums

GL Graphics 2

20 Aug 2025 5:25 #32291

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

21 Aug 2025 5:33 #32292

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

Please login to reply.