Package com.banuba.sdk.render_target
Interface IRenderTargetPresentable
- All Superinterfaces:
IRenderedFrameProvider
- All Known Subinterfaces:
IRenderTarget
- All Known Implementing Classes:
OpenGLRenderTarget
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 TypeMethodDescriptionlongGet the drawing time of the current frameandroid.util.SizeGet render surface sizevoidpresent()Display frame on attached surfacevoidpresent(WindowSurface windowSurface, android.graphics.Rect renderingRect) Draw frame on surfaceMethods 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
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
-