Fullscreen

Started by DavidYazel, July 03, 2003, 05:22:55

Previous topic - Next topic

DavidYazel

Ok I must be missing something.  In the examples BaseWindow uses a fullscreen flag and then it is never used.  BaseGL has a private fullscreen flag, but the constructor does not take anything to make it fullscreen. Display, DisplayMode and Window all do not reference fullscreen.

1. How do you turn it into full screen mode?

2. Using this is it possible to go from 16 to 32 bits resolution if the OS is set to 16 bits but is capable of handling 32?

Thanks!

Matzon

The current 0.6 example code has just been hacked to work with 0.6, this unfortunatle meansd that it is a bit stale, I am working on updating _all_ of this for 0.7! Though time has been a bit limited lately...

Quote1. How do you turn it into full screen mode?
Easy, though not when the documentation is a less than stellar ATM.
1 - Get a display mode from the Display class
2 - call Display.setDisplayMode(.mode);
3 - create the GL instance using the constructor with no width/height args

Quote2. Using this is it possible to go from 16 to 32 bits resolution if the OS is set to 16 bits but is capable of handling 32?
AFAIK, yes.[/code]

DavidYazel

works perfectly, thanks!

In base window I made the following change:

    if (fullscreen) {
            Display.setDisplayMode(modes[mode]);
            gl = new GL("LWJGL Example", bits, 0, 0, 0);
          } else {
            gl = new GL("LWJGL Example", 50, 50, width, height, bits, 0, 0, 0);
          }