Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
Android Documentation
FullFrameRect

Class FullFrameRect

Hierarchy

java.lang.Object

Package
com.android.grafika.gles

Overview

This class essentially represents a viewport-sized sprite that will be rendered with a texture, usually from an external source like the camera or video decoder.

Constructors

FullFrameRect( Texture2dProgram program )

Prepares the object.

public FullFrameRect(Texture2dProgram program)

Constructor Parameters

program
The program to use. FullFrameRect takes ownership, and will release the program when no longer needed.

Methods

release( boolean doEglCleanup )

Releases resources.

This must be called with the appropriate EGL context current (i.e. the one that was current when the constructor was called). If we're about to destroy the EGL context, there's no value in having the caller make it current just to do this cleanup, so you can pass a flag that will tell this function to skip any EGL-context-specific cleanup.

public void release(boolean doEglCleanup)

Method Parameters

doEglCleanup

getProgram()

Returns the program currently in use.

public com.android.grafika.gles.Texture2dProgram getProgram()

changeProgram( Texture2dProgram program )

Changes the program. The previous program will be released.

The appropriate EGL context must be current.

public void changeProgram(Texture2dProgram program)

Method Parameters

program

createTextureObject()

Creates a texture object suitable for use with drawFrame().

public int createTextureObject()

drawFrame( int textureId, float[] texMatrix )

Draws a viewport-filling rect, texturing it with the specified texture object.

public void drawFrame(int textureId,float[] texMatrix)

Method Parameters

textureId
texMatrix

Inherited Methods

From Class Methods
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section