public class FullFrameRect
extends java.lang.Object
Constructor and Description |
---|
FullFrameRect(Texture2dProgram program)
Prepares the object.
|
Modifier and Type | Method and Description |
---|---|
void |
changeProgram(Texture2dProgram program)
Changes the program.
|
int |
createTextureObject()
Creates a texture object suitable for use with drawFrame().
|
void |
drawFrame(int textureId,
float[] texMatrix)
Draws a viewport-filling rect, texturing it with the specified texture object.
|
Texture2dProgram |
getProgram()
Returns the program currently in use.
|
void |
release(boolean doEglCleanup)
Releases resources.
|
public FullFrameRect(Texture2dProgram program)
program
- The program to use. FullFrameRect takes ownership, and will release
the program when no longer needed.public void release(boolean doEglCleanup)
public Texture2dProgram getProgram()
public void changeProgram(Texture2dProgram program)
The appropriate EGL context must be current.
public int createTextureObject()
public void drawFrame(int textureId, float[] texMatrix)
© 2016 - 2018 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal