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 TypeMethodDescriptionvoid
activate()
Activate rendering contextvoid
destroy()
Destroy RenderTarget and release resourcesvoid
resize()
Recalculate viewport size and set new draw sizesvoid
setFrameTimeNanos
(long timeNanos) Set frame drawing time.Methods inherited from interface com.banuba.sdk.render_target.IRenderedFrameProvider
readPixels
Methods 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
-