Interface IRenderTargetPresentable

All Superinterfaces:
IRenderedFrameProvider
All Known Subinterfaces:
IRenderTarget
All Known Implementing Classes:
OpenGLRenderTarget

public interface IRenderTargetPresentable extends IRenderedFrameProvider
Responsible for drawing frames to 'outputs'. This part of the RenderTarget is owned the Player, but the user controls it.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Get the drawing time of the current frame
    android.util.Size
    Get render surface size
    void
    Display frame on attached surface
    void
    present(WindowSurface windowSurface, android.graphics.Rect renderingRect)
    Draw frame on surface

    Methods inherited from interface com.banuba.sdk.render_target.IRenderedFrameProvider

    readPixels
  • Method Details

    • getRenderingSize

      android.util.Size getRenderingSize()
      Get render surface size
      Returns:
      size of the rendering viewport
    • getFrameTimeNanos

      long getFrameTimeNanos()
      Get the drawing time of the current frame
      Returns:
      frame drawing time in nanoseconds
    • present

      void present(WindowSurface windowSurface, android.graphics.Rect renderingRect)
      Draw frame on surface
      Parameters:
      windowSurface - the surface on which the frame will be drawn
      renderingRect - scaling and positioning the frame on the surface
    • present

      void present()
      Display frame on attached surface