com.threed.jpct.util
Class AAConfigChooser
java.lang.Object
com.threed.jpct.util.AAConfigChooser
public class AAConfigChooser
- extends java.lang.Object
ConfigChooser for anti-aliasing modes. Use this in a call to
GLSurfaceView.setEGLConfigChooser(...) in your onCreate()-method of the
Activity. Make sure that your hardware supports OpenGL ES2.0, because this
requires it and will try to enable it.
This implementation is based on the example from the GDC11.
Constructor Summary |
AAConfigChooser(GLSurfaceView view)
Creates a new EGLConfigChooser that supports anti-aliasing. |
AAConfigChooser(GLSurfaceView view,
boolean withAlpha)
Creates a new EGLConfigChooser that supports anti-aliasing with optional
alpha for the framebuffer. |
Method Summary |
EGLConfig |
chooseConfig(EGL10 egl,
EGLDisplay display)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AAConfigChooser
public AAConfigChooser(GLSurfaceView view)
- Creates a new EGLConfigChooser that supports anti-aliasing.
- Parameters:
view
- the GLSurfaceView
AAConfigChooser
public AAConfigChooser(GLSurfaceView view,
boolean withAlpha)
- Creates a new EGLConfigChooser that supports anti-aliasing with optional
alpha for the framebuffer.
- Parameters:
view
- the GLSurfaceViewwithAlpha
- alpha channel (for transparent framebuffers)?
chooseConfig
public EGLConfig chooseConfig(EGL10 egl,
EGLDisplay display)