OK, how to compile Clearwin in batch and IDE Plato is clear. Now how to compile in BAT and Plato this simplest OpenGL demo with gFortran? It fails. With native FTN95 the compilation
FTN95 ooo.f90 /64 /link
works fine both with /64 or without, and no matter with $ or @ without any changes
PROGRAM Simple
! INCLUDE <clearwin.ins>,nolist
! INCLUDE <opengl.ins>,nolist
use clrwin$
use opengl$
REAL t1,t2
INTEGER i, ctrl
i=winio$('%es%ca[Simple OpengGL Sample]&')
i=winio$('%sp%ww[no_border]%pv%og[static]%lw', 0, 0, 500, 500, ctrl)
CALL glClearColor (0.0, 0.0, 0.0, 0.0)
CALL glClear(GL_COLOR_BUFFER_BIT)
CALL glColor3f(1.0, 1.0, 1.0)
CALL glMatrixMode(GL_PROJECTION)
CALL glLoadIdentity()
CALL glOrtho(-1d0, 1d0, -1d0, 1d0, -1d0, 1d0)
CALL glBegin(GL_POLYGON)
CALL glColor3f(1.0,0.0,0.0)
CALL glVertex2f(-0.5, -0.5)
CALL glColor3f(0.0,1.0,0.0)
CALL glVertex2f(-0.5, 0.5)
CALL glColor3f(0.0,0.0,1.0)
CALL glVertex2f( 0.5, 0.5)
CALL glColor3f(1.0,0.0,0.0)
CALL glVertex2f( 0.5, -0.5)
CALL glEnd()
CALL glFlush()
END