Silverfrost Forums

Welcome to our forums

FULL SCREEN with winio@ - difference between fullscreen

31 May 2008 9:46 #3291

Please about some idea how to change belowe classic OpenGL code which can switch between full screen and window. It can looks like this:

        case 'f':
            glutFullScreen()
        case 'w':
            glutReshapeWindow(500, 500)
            glutPositionWindow(50, 50)

With winio@ to obtain full screen I use for example:

i=winio@('%sv%sp%ww[no_caption,no_sysmenu,no_frame,no_border]%pv%^og[DOUBLE]%lw',0,0,xres,yres,opengl_proc,ctrl)

where xres,yres are max. res. coordinaters- it works. Window can be called with:

i=winio@('%es%sv%sp%ww[no_caption,no_sysmenu,no_border]%pv%^og[DOUBLE]%lw',xo1,yo1,xo2,yo2,opengl_proc,ctrl)

where xo1,yo1,xo2,yo2 are window coordinates. But how to call one time full one time window. I tried above code to adopt intuitive but without success, for example:

     SELECT CASE (k)
       CASE ('f')
        ctrl = 0
        call window_update@(ctrl)
        ctrl = 1
        i=winio@('%sv%sp%ww[no_caption,no_sysmenu,no_frame,no_border]%pv%^og[DOUBLE]%lw',0,0,xres,yres,opengl_proc,ctrl)
       CASE ('w')
         i=winio@('%es%sv%sp%ww[no_caption,no_sysmenu,no_border]%pv%^og[DOUBLE]%lw',xo1,yo1,xo2,yo2,opengl_proc,ctrl)
Please login to reply.