Package com.banuba.sdk.render_target
Interface IRenderTarget
- All Superinterfaces:
IRenderedFrameProvider,IRenderTargetPresentable
- All Known Implementing Classes:
OpenGLRenderTarget
Responsible for preparation for drawing frames to 'outputs'.
This part of the RenderTarget is owned and controlled only by the
Player.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidactivate()Activate rendering contextvoiddestroy()Destroy RenderTarget and release resourcesvoidresize()Recalculate viewport size and set new draw sizesvoidsetFrameTimeNanos(long timeNanos) Set frame drawing time.Methods inherited from interface com.banuba.sdk.render_target.IRenderedFrameProvider
readPixelsMethods inherited from interface com.banuba.sdk.render_target.IRenderTargetPresentable
getFrameTimeNanos, getRenderingSize, present, present
-
Method Details
-
activate
void activate()Activate rendering context -
destroy
void destroy()Destroy RenderTarget and release resources -
resize
void resize()Recalculate viewport size and set new draw sizes -
setFrameTimeNanos
void setFrameTimeNanos(long timeNanos) Set frame drawing time. Necessary for correct video recording- Parameters:
timeNanos- current frame drawing time in nanoseconds
-