com.badlogic.gdx.backends.android.surfaceview
Class GdxEglConfigChooser

java.lang.Object
  extended by com.badlogic.gdx.backends.android.surfaceview.GdxEglConfigChooser
All Implemented Interfaces:
android.opengl.GLSurfaceView.EGLConfigChooser

public class GdxEglConfigChooser
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.

Author:
mzechner

Field Summary
static int EGL_COVERAGE_BUFFERS_NV
           
static int EGL_COVERAGE_SAMPLES_NV
           
 
Constructor Summary
GdxEglConfigChooser(int r, int g, int b, int a, int depth, int stencil, int numSamples, boolean useGL20)
           
 
Method Summary
 javax.microedition.khronos.egl.EGLConfig chooseConfig(javax.microedition.khronos.egl.EGL10 egl, javax.microedition.khronos.egl.EGLDisplay display)
           
 javax.microedition.khronos.egl.EGLConfig chooseConfig(javax.microedition.khronos.egl.EGL10 egl, javax.microedition.khronos.egl.EGLDisplay display, javax.microedition.khronos.egl.EGLConfig[] configs)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EGL_COVERAGE_BUFFERS_NV

public static final int EGL_COVERAGE_BUFFERS_NV
See Also:
Constant Field Values

EGL_COVERAGE_SAMPLES_NV

public static final int EGL_COVERAGE_SAMPLES_NV
See Also:
Constant Field Values
Constructor Detail

GdxEglConfigChooser

public GdxEglConfigChooser(int r,
                           int g,
                           int b,
                           int a,
                           int depth,
                           int stencil,
                           int numSamples,
                           boolean useGL20)
Method Detail

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)


Copyright © 2013. All Rights Reserved.