com.threed.jpct.util
Class NVDepthConfigChooser
java.lang.Object
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.
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 |
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 GLSurfaceViewwithAlpha
- alpha channel (for transparent framebuffers)?
chooseConfig
public EGLConfig chooseConfig(EGL10 egl,
EGLDisplay display)