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 voidchangeFragmentShader(java.lang.String fragmentShader)Replaces the fragment shader.voidcheckGlError(java.lang.String op)static voidcheckLocation(int location, java.lang.String label)voiddrawFrame(android.graphics.SurfaceTexture st, boolean invert)Draws the external texture in SurfaceTexture onto the current EGL surface.intgetTextureId()voidsurfaceCreated()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)
-
-