leszpol
Joined: 25 Apr 2008 Posts: 29 Location: Gdynia-TriCity
|
Posted: Wed Jun 04, 2008 10:19 pm Post subject: Is there any idea what to do with my FULL SCREEN problem... |
|
|
Please about some idea how to change belowe classic OpenGL code
which can switch between full screen and window. It can looks like this:
Code: |
case 'f':
glutFullScreen()
case 'w':
glutReshapeWindow(500, 500)
glutPositionWindow(50, 50)
|
With winio@ to obtain full screen I use for example:
Code: |
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:
Code: |
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:
Code: |
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)
|
|
|