full screen JOGL

Does anyone have some example code for a full screen JOGL (using linux) app?

Will the java full screen exclusive mode work for JOGL?
ref: http://java.sun.com/docs/books/tutorial/extra/fullscreen/

Cheers,

Will.

http://www.realityflux.com/abba/fullscreen.zip

I use Windows XP …

thanks cool,

Nasty java native code exception in linux originating in JOGL - might just be my video card or JOGL…

I’ll try it in windows. If linux doesn’t like full screen mode I guess i shall have to fake it for linux and have it real in windows.

Thanks a lot for your demo code!

Cheers,

Will.

PS. Exception attached.


An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0xEF1
Function=[Unknown.]
Library=(N/A)

NOTE: We are unable to locate the function name symbol for the error
      just occurred. Please refer to release documentation for possible
      reason and solutions.


Current Java thread:
        at net.java.games.jogl.impl.GLUImpl.dispatch_gluPerspective(Native Metho
d)
        at net.java.games.jogl.impl.GLUImpl.gluPerspective(GLUImpl.java:920)
        at init_renderer.reshape(init_renderer.java:68)
        at net.java.games.jogl.impl.GLDrawableHelper.reshape(GLDrawableHelper.ja
va:81)
        at net.java.games.jogl.GLCanvas$1.run(GLCanvas.java:115)
        at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:183)
        - locked <0x44c94c48> (a net.java.games.jogl.impl.x11.X11OnscreenGLConte
xt)
        at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:179)
        at net.java.games.jogl.GLCanvas.display(GLCanvas.java:84)
        at net.java.games.jogl.GLCanvas.paint(GLCanvas.java:95)
        at sun.awt.RepaintArea.paint(RepaintArea.java:177)
        at sun.awt.motif.MComponentPeer.handleEvent(MComponentPeer.java:405)
        at java.awt.Component.dispatchEventImpl(Component.java:3678)
        at java.awt.Component.dispatchEvent(Component.java:3477)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:201)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:151)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

No, this is not related to FullScreen - I have the same result for any glu call (at least gluPerspective, gluPickMatrix, gluNewQuadric).

If somebody has workaround this would be a great help.

Yuri

is linux even supported for 2D full screen java? I havn’t tried to use it untill now. Perhaps I should try the blackdown version rather than the Sun one.

I would really like to get this working too.

Will.

Linux does not yet support AWT’s fullscreen api, no matter whose JRE you use. Under a standard AWT app you’d get an UnsupportedOperationException, I suspect that occured here too, but it caused further problems with JOGL leading to a different dump.

Cross your fingers for 1.5 I guess :slight_smile: