com.threed.jpct.util
Class NVDepthConfigChooser

java.lang.Object
  extended by com.threed.jpct.util.NVDepthConfigChooser

public class NVDepthConfigChooser
extends java.lang.Object

ConfigChooser for a non linear depth buffer on NVidia Tegra chips. 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.
If you aren't using a Tegra chip, a standard config will be returned instead.
This might also help to improve depth buffer accuracy on other chips than Tegra, because the default config that it chooses will have a depth higher than 16bit if possible.


Constructor Summary
NVDepthConfigChooser(GLSurfaceView view)
          Creates a new NVDepthConfigChooser
NVDepthConfigChooser(GLSurfaceView view, boolean withAlpha)
          Creates a new NVDepthConfigChooser 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

NVDepthConfigChooser

public NVDepthConfigChooser(GLSurfaceView view)
Creates a new NVDepthConfigChooser

Parameters:
view - the GLSurfaceView

NVDepthConfigChooser

public NVDepthConfigChooser(GLSurfaceView view,
                            boolean withAlpha)
Creates a new NVDepthConfigChooser 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)