Hi, I have 1280x1024 most of the time, but when I run my game I want to
change it to 800x600 and I wonder how you can do that in java/jogl.
thx
Hi, I have 1280x1024 most of the time, but when I run my game I want to
change it to 800x600 and I wonder how you can do that in java/jogl.
thx
Look at the sources for demos.fullscreen.GearsFullscreen in the jogl-demos workspace. You need to use the core JDK’s APIs to set a full-screen window and change the display resolution. Note that on Linux only Java SE 6 (“Mustang”) supports display resolution changes. On Windows and Mac OS X the JDKs as far back as 1.4.2 support display resolution changes.
You can change your resolution while in full screen mode using GraphicsDevice’s setDisplayMode. Try this http://java.sun.com/docs/books/tutorial/extra/fullscreen/