Login  Register

Re: JOGL 2.0 (OpenGL/OpenGL-ES) backend for LibGDX

Posted by Xerxes Rånby on Jul 17, 2015; 12:26am
URL: https://forum.jogamp.org/JOGL-2-0-OpenGL-OpenGL-ES-backend-for-LibGDX-tp4027689p4034917.html

Xerxes Rånby wrote
We have to look into why the dispmanx surfaces are not aligned with the top left corner of the screen, it looks like the OpenGL ES window has an offset of +100 pixels in X to the right and -100 pixels in Y down.
The mousepointer dispmanx overlay looks to have a similar offset in the other direction -100 pixels in X to the left and +100 pixels in Y upward.
The root cause is understood

WindowImpl has a default position of 64,64
This caused a misaligned mousepointer and window
seen on the Raspberry Pi that is still unfixed.

We have analysed the bug and proposed ways to properly resolve it in the jogamp irc channel
http://jogamp.org/log/irc/jogamp_20150716145123.html#l209

By overriding the default position to 0,0
we workaround and align them.
https://github.com/xranby/jogl/commit/e6413257a6aaec581e8e33f81c16cc66d477501f

This workaround will be enough to get the mousepointer aligned with libgdx games running in a large window/fullscreen.

We have earmarked the issue:
https://jogamp.org/bugzilla/show_bug.cgi?id=1176