Can I use the Full-Screen Exclusive Mode API and JOGL together so a user caould select their resolution and screen refresh rate on programe start?
Thanks
Can I use the Full-Screen Exclusive Mode API and JOGL together so a user caould select their resolution and screen refresh rate on programe start?
Thanks
Yes. See the demos.fullscreen code in the jogl-demos workspace. Some of the workarounds that were needed before probably are no longer needed now. Note that it is essential that on Windows you specify -Dsun.java2d.noddraw=true if you’re going to use full-screen exclusive mode since otherwise the Java 2D / AWT will implement FSEM with DirectDraw, which is fundamentally incompatible with OpenGL.
Don’t I loose hardware acceleration if I specify -Dsun.java2d.noddraw=true ?
no just DirectDraw is disabled. You probably loose hardware acceleration if you don’t specify -Dsun.java2d.noddraw=true