Package com.banuba.sdk.render_target
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 thePlayer
, but the user controls it.- See Also:
IRenderTarget
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getFrameTimeNanos()
Get the drawing time of the current frameandroid.util.Size
getRenderingSize()
Get render surface sizevoid
present()
Display frame on attached surfacevoid
present(WindowSurface windowSurface, android.graphics.Rect renderingRect)
Draw frame on surface-
Methods inherited from interface com.banuba.sdk.render_target.IRenderedFrameProvider
readPixels
-
-
-
-
Method Detail
-
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 drawnrenderingRect
- scaling and positioning the frame on the surface
-
present
void present()
Display frame on attached surface
-
-