Results 1 to 3 of 3

Thread: GL10 vs GL11 on Android

  1. #1
    Junior Member
    Join Date
    May 2011
    Posts
    2

    GL10 vs GL11 on Android

    Hi everyone..

    Specifically, it is about Open GL ES on Android.
    But it should be not much different
    Thereotically, is it legal to mix gl10 and gl11?

    This is what I am doing and I still able to compile and run with no error.


    Code :
    .
    .
    import javax.microedition.khronos.opengles.GL10
    import javax.microedition.khronos.opengles.GL11
     
    public class MyClass implements Renderer{
    .
    .
    .
    public void onSurfaceCreated(GL10 gl, EGLConfig config){
                 gl.glLightfv(GL11.GL_LIGHT0, GL11.GL_POSITION, myBuffer);
    .
    .
    .
    }
    }


    So, is it legal? will it affect the performance?


    Thanks!

  2. #2
    Junior Member
    Join Date
    Apr 2010
    Posts
    3

    Re: GL10 vs GL11 on Android

    its legal cause GLES11 is subclass of GLES10 so no problem there

    ava.lang.Object
    ? android.opengl.GLES10
    ? android.opengl.GLES11

  3. #3
    Senior Member
    Join Date
    May 2008
    Posts
    104

    Re: GL10 vs GL11 on Android

    You should not mingle the two APIs, and there should be no reason to do so. You can get any number of un-defined behavior.

Similar Threads

  1. glReadPixels on Android
    By gadget in forum OpenGL ES general technical discussions
    Replies: 3
    Last Post: 12-23-2012, 05:57 PM
  2. OpenWF - C on Android
    By nimeshchanchani in forum OpenWF
    Replies: 2
    Last Post: 02-15-2012, 03:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •