Hi all,
You can certainly do this under OpenGL ES 1.1. If you download our SDK for your platform or use our VFrame PCEmulation SDK and examine TrainingCourses/Multitexture/OGLES/ you’ll find an example project that does exactly what your asking, for various effects.
The most relevant functions are probably:
OGLESMultitexture::RenderScene()
OGLESMultitexture::EnableStates()
OGLESMultitexture::DrawCube()
Please let us know if you have any problems,
G
Gordon, Thank you for your fast reply!
I 'd like to create two rendering contexts, one for the main plane (layer) and another for the overlay planes (layers). Is it possible?
Hardware overlays are a feature of the display controller which is not part of the MBX core. Whether overlays are supported and whether you can create surfaces renderable by OpenGL ES that go to different layers depends on the SoC/platform you are using.
Thanks Xmas.
EGL, in theory, offers layer selection through the EGL_LEVEL config parameter. It is up to the platform provider to implement this, so you’ll have to ask Freescale for details.