Tomatos on my Eyes ? Fullscreen how to Init

Hi,

maybe im blind as a Fish. How to Init the Fullscreen Mode via LWJGL in version 0.7pre ? ???

The Display Class seems not to do such things.
Also were the heck can i figure out if i allready in Fullscreen Mode ? like

boolean isFullscreen = Display.isFullScreen();

Bye the way, why are the Methods like getHeight() getWidth() in Class GLWindow are static ?
For me this infos can only be avaible if the GLWindow was allready created!

Thx,

  • Jens

[quote] Bye the way, why are the Methods like getHeight() getWidth() in Class GLWindow are static ?
For me this infos can only be avaible if the GLWindow was allready created!
[/quote]
yeah, an assert isCreated(); should be in order here…

[quote] maybe im blind as a Fish. How to Init the Fullscreen Mode via LWJGL in version 0.7pre
[/quote]
Windowed mode use:

public static void create(String title, int x, int y, int width, int height, int bpp, int alpha, int depth, int stencil)

Fullscreen:

public static native void setDisplayMode(DisplayMode mode) throws Exception;

first to makre the screen switch to desired resolution, then do a

public static void create(String title, int bpp, int alpha, int depth, int stencil) throws Exception {

[quote] Also were the heck can i figure out if i allready in Fullscreen Mode ?
[/quote]
yeah, we could probably add a Window.isFullScreen - though you’re the first to actually request it :slight_smile:

…but we aren’t going to as there is nothing you can do about being in fullscreen or not anyway. And indeed, it isn’t supposed to make a difference to the API.

Cas :slight_smile:

… what if you wanted to have the game run at a lower fps when it’s running in windowed mode?

;D
I will find it handy to know if i allready running in fullscreen Mode!

e.g The user can allready switch by ALT-TAB key.

  • Jens

Why would you want to run at a lower fps in windowed mode???

Anyway, Brian’s gone and added it anyway, so it’s a moot point.

A virtual beer to the first person who can come up with a sensible reason why the method is genuinely useful.

Cas :slight_smile:

Because you don’t want the game to take up 100% cpu time when it’s windowed to allow people to actually multitask? :wink:

Wurm runs slower when it’s not the focus owner to allow people to still surf the web and so while playing.

You don’t want the game to take up 100% CPU time when it’s fullscreen, either. It should take up exactly as much time as it needs to think and draw, and then yield while it waits for the monitor to scan.

Cas :slight_smile: