Class ArcEglConfigChooser

java.lang.Object
arc.backend.android.surfaceview.ArcEglConfigChooser
All Implemented Interfaces:
android.opengl.GLSurfaceView.EGLConfigChooser

public class ArcEglConfigChooser extends Object implements android.opengl.GLSurfaceView.EGLConfigChooser
GLSurfaceView.EGLConfigChooser implementation for GLES 1.x and 2.0. Let's hope this really works for all devices. Includes MSAA/CSAA config selection if requested. Taken from GLSurfaceView20, heavily modified to accommodate MSAA/CSAA.
  • Field Details

    • EGL_COVERAGE_BUFFERS_NV

      public static final int EGL_COVERAGE_BUFFERS_NV
      See Also:
    • EGL_COVERAGE_SAMPLES_NV

      public static final int EGL_COVERAGE_SAMPLES_NV
      See Also:
    • mConfigAttribs

      protected final int[] mConfigAttribs
    • mRedSize

      protected int mRedSize
    • mGreenSize

      protected int mGreenSize
    • mBlueSize

      protected int mBlueSize
    • mAlphaSize

      protected int mAlphaSize
    • mDepthSize

      protected int mDepthSize
    • mStencilSize

      protected int mStencilSize
    • mNumSamples

      protected int mNumSamples
  • Constructor Details

    • ArcEglConfigChooser

      public ArcEglConfigChooser(int r, int g, int b, int a, int depth, int stencil, int numSamples)
  • Method Details

    • chooseConfig

      public javax.microedition.khronos.egl.EGLConfig chooseConfig(javax.microedition.khronos.egl.EGL10 egl, javax.microedition.khronos.egl.EGLDisplay display)
      Specified by:
      chooseConfig in interface android.opengl.GLSurfaceView.EGLConfigChooser
    • chooseConfig

      public javax.microedition.khronos.egl.EGLConfig chooseConfig(javax.microedition.khronos.egl.EGL10 egl, javax.microedition.khronos.egl.EGLDisplay display, javax.microedition.khronos.egl.EGLConfig[] configs)