public class ConfigChooser
extends java.lang.Object
implements android.opengl.GLSurfaceView.EGLConfigChooser
ConfigChooser
is a convenience class for configuring a GLSurfaceView
.Constructor and Description |
---|
ConfigChooser(int r,
int g,
int b,
int a,
int depth,
int stencil)
Construct a
ConfigChooser to match the given framebuffer parameters |
Modifier and Type | Method and Description |
---|---|
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) |
public ConfigChooser(int r, int g, int b, int a, int depth, int stencil)
ConfigChooser
to match the given framebuffer parametersr
- Red bitsg
- Green bitsb
- Blue bitsa
- Alpha bitsdepth
- Depth bitsstencil
- Stencil bitspublic javax.microedition.khronos.egl.EGLConfig chooseConfig(javax.microedition.khronos.egl.EGL10 egl, javax.microedition.khronos.egl.EGLDisplay display)
chooseConfig
in interface android.opengl.GLSurfaceView.EGLConfigChooser
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)