Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [SOLVED] Force OpenGL ES 2.0 on a tablet PC?
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Force OpenGL ES 2.0 on a tablet PC?

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 1 Posters 3.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yalnte
    wrote on last edited by
    #1

    Hi,

    Does anyone know if it is possible to choose the version of OpenGL used on a tablet PC with PlasmaActive2?

    I had Meego Tablet installed on an ExoPC and it used to compile with the QT_OPENGL_ES_2 compiler directive set.

    However, since I've given up on Meego and installed PlasmaActive2 / OpenSUSE12.1 this directive is not set.

    I'd like to use the ES 2.0 version of this program but need to somehow change / force this. Does anyone have any ideas?

    Thanks in advance.

    1 Reply Last reply
    0
    • Y Offline
      Y Offline
      yalnte
      wrote on last edited by
      #2

      Not sure if anyone else is reading this but I'm slowly getting to understand the differences between OGLES and OGL3.0 onwards (code not working yet though!)

      The websites which are helping are:

      http://developer.qt.nokia.com/wiki/How_to_use_OpenGL_Core_Profile_with_Qt
      https://svn.theharmers.co.uk/svn/codes/public/opengl/trunk opengl
      http://code.google.com/p/oglsuperbible5/issues/detail?id=35

      1 Reply Last reply
      0
      • Y Offline
        Y Offline
        yalnte
        wrote on last edited by
        #3

        I'm basically having to rewrite my vertex and fragment shaders to comply with requirements for OpenGL 3.0 and above. Haven't tried compiling my code for OGLES 2.0 yet, but am using the GLSL documentation contained here:

        http://nehe.gamedev.net/article/glsl_an_introduction/25007/

        Will probably have to have two sets of shaders unless compiler directives work for GLSL also?

        1 Reply Last reply
        0
        • Y Offline
          Y Offline
          yalnte
          wrote on last edited by
          #4

          Seem to have a workaround for this now - am using essentially the same GLSL code but swap it for OGL 1.2, 3.3 and OGLES 2.0 versions. The main change is the first line of the shader source code files which gives the version number. I will post links to my code once it's uploaded and stable.

          I haven't managed to force OGLES 2.0 on the ExoPC but it seems largely irrelevent now. Hope this helps someone else!

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved