Class GDFTextureRenderer


  • class GDFTextureRenderer
    extends java.lang.Object
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GDFTextureRenderer

        public GDFTextureRenderer()
    • 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)