public class

GlSurface

extends GLSurfaceView
implements GlObject.IAnimationListener
java.lang.Object
   ↳ android.view.View
     ↳ android.view.SurfaceView
       ↳ android.opengl.GLSurfaceView
         ↳ com.c2call.sdk.pub.video.GlSurface

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.

Summary

[Expand]
Inherited Constants
From class android.opengl.GLSurfaceView
From class android.view.View
[Expand]
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)
[Expand]
Inherited Methods
From class android.opengl.GLSurfaceView
From class android.view.SurfaceView
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.SurfaceHolder.Callback
From interface android.view.accessibility.AccessibilityEventSource
From interface com.c2call.sdk.lib.views.videocall.gl.GlObject.IAnimationListener

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)