Package com.gdflab.gdfsr.video
Class GDFTextureRenderer
- java.lang.Object
-
- com.gdflab.gdfsr.video.GDFTextureRenderer
-
class GDFTextureRenderer extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description GDFTextureRenderer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
changeFragmentShader(java.lang.String fragmentShader)
Replaces the fragment shader.void
checkGlError(java.lang.String op)
static void
checkLocation(int location, java.lang.String label)
void
drawFrame(android.graphics.SurfaceTexture st, boolean invert)
Draws the external texture in SurfaceTexture onto the current EGL surface.int
getTextureId()
void
surfaceCreated()
Initializes GL state.
-
-
-
Method Detail
-
getTextureId
public int getTextureId()
-
drawFrame
public void drawFrame(android.graphics.SurfaceTexture st, boolean invert)
Draws the external texture in SurfaceTexture onto the current EGL surface.
-
surfaceCreated
public void surfaceCreated()
Initializes GL state. Call this after the EGL surface has been created and made current.
-
changeFragmentShader
public void changeFragmentShader(java.lang.String fragmentShader)
Replaces the fragment shader. Pass in null to reset to default.
-
checkGlError
public void checkGlError(java.lang.String op)
-
checkLocation
public static void checkLocation(int location, java.lang.String label)
-
-