com.badlogic.gdx.backends.android.surfaceview
Class GLSurfaceView20LW

java.lang.Object
  extended by com.badlogic.gdx.backends.android.surfaceview.GLBaseSurfaceViewLW
      extended by com.badlogic.gdx.backends.android.surfaceview.DefaultGLSurfaceViewLW
          extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.badlogic.gdx.backends.android.surfaceview.GLBaseSurfaceViewLW
GLBaseSurfaceViewLW.EGLContextFactory, GLBaseSurfaceViewLW.EGLWindowSurfaceFactory, GLBaseSurfaceViewLW.GLWrapper
 
Field Summary
 
Fields inherited from class com.badlogic.gdx.backends.android.surfaceview.GLBaseSurfaceViewLW
DEBUG_CHECK_GL_ERROR, DEBUG_LOG_GL_CALLS, RENDERMODE_CONTINUOUSLY, RENDERMODE_WHEN_DIRTY
 
Constructor Summary
GLSurfaceView20LW(android.service.wallpaper.WallpaperService.Engine engine, boolean translucent, int depth, int stencil, ResolutionStrategy resolutionStrategy)
           
GLSurfaceView20LW(android.service.wallpaper.WallpaperService.Engine engine, ResolutionStrategy resolutionStrategy)
           
 
Method Summary
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.