If so could we not write a wrapper that just swaps takes the OGL calls and calls the ES equivalents?
Yup, it possible but it's a lot of work, because you need to implement entire legacy state processor. For emulation it makes sense, but for new projects I'd
strongly advise against it. I don't want to start flame war, but OpenGL ES is significantly more elegant than OpenGL itself. The 'missing calls' should not be missed too much...
Is the state processor etc needed for the ancient calls or just for newer code? I was definently not suggesting this as a way forward for new applications...but I thought it would make many applications much, much easier to port (basically just recompile). BTW, I wasn't suggesting a real-time conversion of the API functions...so I don't think it would be useful for emulators would it? Or I suppose it might...I guess I don't know enough about emulators yet...I always assumed they just converted machine code into another machine code but it seems that they actually often intercept non-native API calls as well and implement those a bit like WINE, which makes sense, and then you would need to compile into the emulator some way to carry out OGL functions...but I'm still a bit confused about the mechanisms. Need to get my hands dirty with emulators at some point...
maciek_urbanski said:
If nobody calls it - it may be empty function. But sadly, regardless of what 'should be' - most folks use those legacy functions in some non-mission-critical parts of code, so you'd just end up implementing them anyway...
I guess that the majority of applications will not compile without implementing the whole API then...sigh..
maciek_urbanski said:
I suggest alternative route. When porting we have sources to application, so we can/should change application itself. Using OGL ES instead OGL_via_emulation + OGL ES would be significantly faster (fps-wise) IMHO.
I suppose it was mostly laziness talking...just trying to think of the quickest way to get software ported on to the Pandora...I feel that having some decent native games and easy access to them is going to be the deciding factor as to whether the Pandora is a success or not in the long run...for the second batch people will really pay attention to this and I don't know how many high quality homebrew projects will be ready by then.
maciek_urbanski said:
This is not a silly question.
That's good then