Login  Register

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

Posted by Xerxes Rånby on Feb 19, 2013; 8:50am
URL: https://forum.jogamp.org/JOGL-2-0-OpenGL-OpenGL-ES-backend-for-LibGDX-tp4027689p4028268.html

Dardzull wrote
To run JME3 on the RPi you need to have something more or less like:

java -Dnativewindow.ws.name=jogamp.newt.driver.bcm.vc.iv -jar MyGame.jar


The "-Dnativewindow.ws.name=jogamp.newt.driver.bcm.vc.iv" MUST be there to work in X or X-less.  I'm not a fan of Eclipse so your on your own there.  =(

Nope this is no longer needed to add the -Dnativewindow.ws.name=jogamp.newt.driver.bcm.vc.iv if you use JogAmp JOGL rc11 or later. We have added Raspberry Pi nativewindow autodetection in the latest releases.

I have updated the http://labb.zafena.se/?p=547 introduction article to demonstrate that it is now possible to run JOGl code on the Raspberry Pi without adding any Pi specific system properties.

The following lines of code will run on both desktop and on the raspberry pi!
Xerxes Rånby wrote
wget http://jogamp.org/deployment/jogamp-current/archive/jogamp-all-platforms.7z
7z x jogamp-all-platforms.7z
cd jogamp-all-platforms
mkdir -p demos/es2
cd demos/es2
wget https://raw.github.com/xranby/jogl-demos/master/src/demos/es2/RawGL2ES2demo.java
cd ../..
javac -cp jar/jogl-all.jar:jar/gluegen-rt.jar demos/es2/RawGL2ES2demo.java
java -cp jar/jogl-all.jar:jar/gluegen-rt.jar:. demos.es2.RawGL2ES2demo