OpenGLES renderer

ShiftZ

08-10-2010 19:52:27

Hi,
I've searched alittle about OpenGLES renderer, but looks like everyone who able to run myGUI on iPhone doing it via Ogre engine. Is there somekind of native OpenGLES renderer for myGUI? Maybe as a third party project? Is it planning?

Altren

08-10-2010 21:11:55

There is OpenGL renderer. I don't know how different OpenGLES is, but I think only few or no changes need to be made to make OpenGL renderer work with OpenGLES, because it use only basic OpenGL finctionality.

ShiftZ

08-10-2010 21:48:35

No, there are enough of difference to get abit of head pain.

Just opened first file and see:

glPushClientAttrib(GL_CLIENT_ALL_ATTRIB_BITS);
glPushAttrib(GL_ALL_ATTRIB_BITS);


OpenGL ES doesnt support it.

ShiftZ

08-10-2010 21:59:51

Another scroll down:

glPushMatrix();
glPopMatrix();

gl es has very limited matrix stack, this may lead to crash if there are already too much matrices.

Altren

09-10-2010 01:21:06

I guess two Matrices is not much. Those functions called twice in OpenGLRenderManager::begin() / OpenGLRenderManager::end() and begin/end called only once per frame.

And after all MyGUI.OgreRender on iPhone works, and OpenGL render is definitely not more complex.

ShiftZ

09-10-2010 18:37:37

How critical reading pixel values from texture is? Can i just omit it?

Altren

09-10-2010 19:37:35

This used only for Widgets with non-rectangular form, so if you don't need round Widgets or other widgets with non-rectangle form you can omit that.