com.threed.jpct.util
Class AAConfigChooser

java.lang.Object
  extended by 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
 

Constructor Detail

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 GLSurfaceView
withAlpha - alpha channel (for transparent framebuffers)?
Method Detail

chooseConfig

public EGLConfig chooseConfig(EGL10 egl,
                              EGLDisplay display)