Thanks ZbuffeR. I have found an alternative.
I have downloaded a set of tools from the PowerVR guys that maps OpenGL ES to standard OpenGL commands. It requires a couple of dlls to work, but at least when I compile the code for my target device it should work ok!
This is what I have done so far, just in case others are searching for this same thing in the future. My ultimate goal is to use windows as my dev environment to create OpenGL ES compliant code for various devices, including iPhone and GP2X Wiz:
- Download the OpenGL ES headers from Khronos (Need GLES, EGL and KHR)
- Put the headers in the GNUstep/mingw/include folder (in their own subfolders)
- Download the PVRVFrame tool (zip)
- Get the OpenGL dll files for the version of ES you are using, and put them in the same folder as your exe
- Get the .lib files (libgles_) and rename to .a, then place them in the GNUstep/mingw/lib folder
Now in your code, include “GLES/gl.h” and it should compile fine.
I have managed to compile an app, but not run it yet (my OpenGL code itself is buggy) so unable to test the PowerVR stuff - but will keep this thread updated.