public class


extends GLSurfaceView
implements GlObject.IAnimationListener
   ↳ android.view.View
     ↳ android.view.SurfaceView
       ↳ android.opengl.GLSurfaceView

Class Overview

This class uses OpenGL ES to render the camera's viewfinder image on the screen. Unfortunately I don't know much about OpenGL (ES). The code is mostly copied from some examples. The only interesting stuff happens in the main loop (the run method) and the onPreviewFrame method.


Inherited Constants
From class android.opengl.GLSurfaceView
From class android.view.View
Inherited Fields
From class android.view.View
Public Constructors
GlSurface(Context context, AttributeSet attrs)
Public Methods
void enableStartAnimations(boolean value)
GlRenderer getRenderer()
ScaleMethod getScaleMethod()
void initRenderer(Context context)
void onActivityDestroyed()
void onAnimationFinished(GlObject o)
void onAnimationStarted(GlObject o)
void onPause()
void onResume()
void onRotation(SCRotation r)
void onVideoStopped()
void setFrameProvider(IBlockingDataProvider<FrameData> frameProvider)
void setScaleMethod(ScaleMethod scaleMethod)
Inherited Methods
From class android.opengl.GLSurfaceView
From class android.view.SurfaceView
From class android.view.View
From class java.lang.Object
From interface
From interface android.view.KeyEvent.Callback
From interface android.view.SurfaceHolder.Callback
From interface android.view.accessibility.AccessibilityEventSource
From interface

Public Constructors

public GlSurface (Context context, AttributeSet attrs)

Public Methods

public void enableStartAnimations (boolean value)

public GlRenderer getRenderer ()

public ScaleMethod getScaleMethod ()

public void initRenderer (Context context)

public void onActivityDestroyed ()

public void onAnimationFinished (GlObject o)

public void onAnimationStarted (GlObject o)

public void onPause ()

public void onResume ()

public void onRotation (SCRotation r)

public void onVideoStopped ()

public void setFrameProvider (IBlockingDataProvider<FrameData> frameProvider)

public void setScaleMethod (ScaleMethod scaleMethod)