Package com.banuba.sdk.render_target
Interface IRenderTarget
-
- All Superinterfaces:
IRenderedFrameProvider
,IRenderTargetPresentable
- All Known Implementing Classes:
OpenGLRenderTarget
public interface IRenderTarget extends IRenderTargetPresentable
Responsible for preparation for drawing frames to 'outputs'. This part of the RenderTarget is owned and controlled only by thePlayer
.- See Also:
IRenderTargetPresentable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
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 Detail
-
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
-
-