Class OpenGLRenderTarget

    • Constructor Summary

      Constructors 
      Constructor Description
      OpenGLRenderTarget​(com.banuba.sdk.effect_player.EffectPlayer effectPlayer, android.util.Size renderSize)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void activate()
      Activate rendering context
      void destroy()
      Destroy RenderTarget and release resources
      EglCore getContext()  
      long getFrameTimeNanos()
      Get the drawing time of the current frame
      int getGlTexture()  
      android.util.Size getRenderingSize()
      Get render surface size
      void present()
      Display frame on attached surface
      void present​(WindowSurface windowSurface, android.graphics.Rect renderingRect)
      Draw frame on surface
      com.banuba.sdk.types.PixelBuffer readPixels()
      Get the rendered frame as an array of pixels
      void resize()
      Recalculate viewport size and set new draw sizes
      void setFrameTimeNanos​(long timeNanos)
      Set frame drawing time.
      • Methods inherited from class java.lang.Object

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

      • OpenGLRenderTarget

        public OpenGLRenderTarget​(com.banuba.sdk.effect_player.EffectPlayer effectPlayer,
                                  android.util.Size renderSize)