com.jme3.system.android
Class AndroidConfigChooser
java.lang.Object
com.jme3.system.android.AndroidConfigChooser
- All Implemented Interfaces:
- android.opengl.GLSurfaceView.EGLConfigChooser
public class AndroidConfigChooser
- extends java.lang.Object
- implements android.opengl.GLSurfaceView.EGLConfigChooser
AndroidConfigChooser is used to determine the best suited EGL Config
Method Summary |
javax.microedition.khronos.egl.EGLConfig |
chooseConfig(javax.microedition.khronos.egl.EGL10 egl,
javax.microedition.khronos.egl.EGLDisplay display)
Gets called by the GLSurfaceView class to return the best config |
boolean |
findConfig(javax.microedition.khronos.egl.EGL10 egl,
javax.microedition.khronos.egl.EGLDisplay display)
findConfig is used to locate the best config and init the chooser with |
int |
getClientOpenGLESVersion()
|
int |
getPixelFormat()
|
void |
logEGLConfig(javax.microedition.khronos.egl.EGLConfig conf,
javax.microedition.khronos.egl.EGLDisplay display,
javax.microedition.khronos.egl.EGL10 egl)
log output with egl config details |
void |
setClientOpenGLESVersion(int clientOpenGLESVersion)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
clientOpenGLESVersion
protected int clientOpenGLESVersion
bestConfig
protected javax.microedition.khronos.egl.EGLConfig bestConfig
fastestConfig
protected javax.microedition.khronos.egl.EGLConfig fastestConfig
choosenConfig
protected javax.microedition.khronos.egl.EGLConfig choosenConfig
type
protected AndroidConfigChooser.ConfigType type
pixelFormat
protected int pixelFormat
verbose
protected boolean verbose
AndroidConfigChooser
public AndroidConfigChooser(AndroidConfigChooser.ConfigType type)
chooseConfig
public javax.microedition.khronos.egl.EGLConfig chooseConfig(javax.microedition.khronos.egl.EGL10 egl,
javax.microedition.khronos.egl.EGLDisplay display)
- Gets called by the GLSurfaceView class to return the best config
- Specified by:
chooseConfig
in interface android.opengl.GLSurfaceView.EGLConfigChooser
findConfig
public boolean findConfig(javax.microedition.khronos.egl.EGL10 egl,
javax.microedition.khronos.egl.EGLDisplay display)
- findConfig is used to locate the best config and init the chooser with
- Parameters:
egl
- display
-
- Returns:
- true if successfull, false if no config was found
logEGLConfig
public void logEGLConfig(javax.microedition.khronos.egl.EGLConfig conf,
javax.microedition.khronos.egl.EGLDisplay display,
javax.microedition.khronos.egl.EGL10 egl)
- log output with egl config details
- Parameters:
conf
- display
- egl
-
getClientOpenGLESVersion
public int getClientOpenGLESVersion()
setClientOpenGLESVersion
public void setClientOpenGLESVersion(int clientOpenGLESVersion)
getPixelFormat
public int getPixelFormat()