project.android.imageprocessing.output
Class ScreenEndpoint

java.lang.Object
  extended by project.android.imageprocessing.GLRenderer
      extended by project.android.imageprocessing.output.ScreenEndpoint
All Implemented Interfaces:
GLTextureInputRenderer

public class ScreenEndpoint
extends GLRenderer
implements GLTextureInputRenderer

A screen renderer extension of GLRenderer. This class accepts a texture as input and renders it to the screen.

Author:
Chris Batt

Field Summary
 
Fields inherited from class project.android.imageprocessing.GLRenderer
ATTRIBUTE_POSITION, ATTRIBUTE_TEXCOORD, UNIFORM_TEXTURE0, VARYING_TEXCOORD
 
Constructor Summary
ScreenEndpoint(FastImageProcessingPipeline rendererContext)
          Creates a GLTextureToScreenRenderer.
 
Method Summary
 void newTextureReady(int texture, GLTextureOutputRenderer source)
          Signals that a new texture is available and the image should be reprocessed.
 
Methods inherited from class project.android.imageprocessing.GLRenderer
destroy, getBackgroundAlpha, getBackgroundBlue, getBackgroundGreen, getBackgroundRed, getHeight, getWidth, onDrawFrame, reInitialize, rotateClockwise90Degrees, rotateCounterClockwise90Degrees, setBackgroundAlpha, setBackgroundBlue, setBackgroundColour, setBackgroundGreen, setBackgroundRed, setRenderSize
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScreenEndpoint

public ScreenEndpoint(FastImageProcessingPipeline rendererContext)
Creates a GLTextureToScreenRenderer.

Parameters:
rendererContext - A reference to the GLSurfaceView.Renderer that contains the OpenGL context.
Method Detail

newTextureReady

public void newTextureReady(int texture,
                            GLTextureOutputRenderer source)
Description copied from interface: GLTextureInputRenderer
Signals that a new texture is available and the image should be reprocessed.

Specified by:
newTextureReady in interface GLTextureInputRenderer
Parameters:
texture - The texture id to be used as input.
source - The GLTextureOutputRenderer which produced the texture.