com.badlogic.gdx.backends.android.surfaceview
Class GLSurfaceView20LW
java.lang.Object
com.badlogic.gdx.backends.android.surfaceview.GLBaseSurfaceViewLW
com.badlogic.gdx.backends.android.surfaceview.DefaultGLSurfaceViewLW
com.badlogic.gdx.backends.android.surfaceview.GLSurfaceView20LW
- All Implemented Interfaces:
- android.view.SurfaceHolder.Callback
public class GLSurfaceView20LW
- extends DefaultGLSurfaceViewLW
A simple GLSurfaceView sub-class that demonstrate how to perform OpenGL ES 2.0 rendering into a GL Surface. Note the following
important details:
- The class must use a custom context factory to enable 2.0 rendering. See ContextFactory class definition below.
- The class must use a custom EGLConfigChooser to be able to select an EGLConfig that supports 2.0. This is done by providing a
config specification to eglChooseConfig() that has the attribute EGL10.ELG_RENDERABLE_TYPE containing the EGL_OPENGL_ES2_BIT
flag set. See ConfigChooser class definition below.
- The class must select the surface's format, then choose an EGLConfig that matches it exactly (with regards to
red/green/blue/alpha channels bit depths). Failure to do so would result in an EGL_BAD_MATCH error.
| Methods inherited from class com.badlogic.gdx.backends.android.surfaceview.GLBaseSurfaceViewLW |
getDebugFlags, getHolder, getRenderMode, onDestroy, onPause, onResume, queueEvent, requestRender, setDebugFlags, setEGLConfigChooser, setEGLConfigChooser, setEGLConfigChooser, setEGLContextFactory, setEGLWindowSurfaceFactory, setGLWrapper, setRenderer, setRenderMode, surfaceChanged, surfaceCreated, surfaceDestroyed |
GLSurfaceView20LW
public GLSurfaceView20LW(android.service.wallpaper.WallpaperService.Engine engine,
ResolutionStrategy resolutionStrategy)
GLSurfaceView20LW
public GLSurfaceView20LW(android.service.wallpaper.WallpaperService.Engine engine,
boolean translucent,
int depth,
int stencil,
ResolutionStrategy resolutionStrategy)
Copyright © 2013. All Rights Reserved.