So i bet some of you waited for this...
For those who don't know, glshim is a piece of software that redirects OpenGL 1.x calls to OpenGLES 1.1.
The GCW0 does not have support for OpenGL but glshim now allows us to port OpenGL-only software !
It was developped by lunixbochs because he wanted to port OpenGL games to the Pandora without having
to do the manual (and painful) process of having to convert the game to OpenGLES.
glshim is used by many OpenPandora ports such as Wing Commander Saga, SupertuxKart 0.8, Torcs,
Re-Volt, Half-Life... you name it.
Anyway, here is the source, along with the "Gears" example that uses OpenGL :
https://github.com/gameblabla/glshim-gcw
https://github.com/gameblabla/glshim-gcw/raw/master/gears/gears.opk
Compiling the source requires you to have the X11 headers.
Then simply do this (that's how i do it anyway, got a special setup) :
CC=mipsel-linux-gcc CXX=mipsel-linux-g++ LD=mipsel-linux-ld cmake host=/opt/gcw0-toolchain/usr/shared/buildroot/cmake_toolchain_file.cmake ..
make GL
make preload
The sky is the limit now !
Well, almost...
Many thanks to lunixbochs for the help.
"Hi,
Some good news from one of the devs:
"Hi Faust,
That's excellent.. one of our goals in making Re-Volt cross-platform was to eventually have it ported to more platforms - possibly Linux based consoles and handhelds.
Sharing the source code is tricky because the game rights are protected, as you probably know. The current publishers have somewhat similar ambitions as we do, but we didn't really get along well. We asked them for the rights to publish the PC version and clear the status of our source code. It would have let us make the game legally available and open source our code, which could have benefited both the community and the publishers.
If we go ahead with this we have to remember it's a totally unofficial port and the source cannot be released yet to the wider public. We are currently a team of two (jigebren and myself), and of late it's just me. We're used to coordinating simply by email and it worked between us, but if the scope of the project is going to expand, some proper version control becomes necessary...
So the prerequisite to sharing our code is to have some kind of centralized git repository where we can monitor and share each of our progress and keep the different branches aligned with our PC base. In the past we considered BitBucket and GitLab, so maybe they're still good options...."
http://z3.invisionfree.com/Our_ReVolt_Pub/index.php?showtopic=2183So if he can keeps the source code under control, and we can keep the source code unavailable, I think he would gives us.
I'm going to talk with him about our repository, I'm confident, he seems to be a kind guy, and I really think that he would happy to share with us.
Does someone wants to port it? If yes maybe the person can reassure him and suggest him some proposal to keep things under control?"
You can ask Huki, when I asked the source code for the Pandora, he accepted, so you should ask him directly.
Ptitseb already has the source code.