how to exploit MBX hardware layer with opengl es

This topic contains 5 replies, has 3 voices, and was last updated by  Xmas 9 years, 6 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #29531

    igor
    Member

    Hi all,

    I want to do a simple demo program with opengl 1.1 (and egl 1.1), exploiting the two MBX lite multitexture layers.

    So, the questions are:

    1) Is it possible to use those layers by means of opengl (and/or egl)?

    2) If yes, how can I do it, that is what functions do I have to use?

     

    Thanks in advance,

     

    Igor
    #32130

    Gordon
    Moderator

    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

    #32131

    igor
    Member

    Gordon, Thank you for your fast reply!

     

    Well, I have seen like I can use MBX Multitexture support. Sorry but I have the last question:

    Does MBX lite support hardware overlay layers as well?

    I ‘d like to create two rendering contexts, one for the main plane (layer) and another for the overlay planes (layers). Is it possible?

     

    Thanks a lot,

     

    Igor
    #32132

    Xmas
    Member
    igor wrote:
    Does MBX lite support hardware overlay layers as well?

    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.

    #32133

    igor
    Member

    Thanks Xmas.

    Sorry, you’re right.

    I’m using ‘mpc5121’ evaluation board and, checking the manual Embarrassed, I have read that the Display Interface Unit manages three planes onto the display.

    Now, I have to understand how to manages those planes with opengl es.

    Maybe, using EGL… I could!

     

    Thank you for the support,

     

    Igor

     

     
    #32134

    Xmas
    Member

    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.

Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.