-
- All Implemented Interfaces:
-
app.rive.core.CheckableAutoCloseable,java.lang.AutoCloseable
@Deprecated(message = RenderBuffer is deprecated. Use SoftwareRenderBuffer for software rendering or HardwareRenderBuffer for hardware rendering., replaceWith = @ReplaceWith(imports = {}, expression = SoftwareRenderBuffer(width, height, riveWorker)), level = DeprecationLevel.WARNING) public final class RenderBuffer implements CheckableAutoCloseable
Deprecated software-only legacy render buffer.
This type remains for source compatibility and keeps the historical software render->read API. For new usage:
Use SoftwareRenderBuffer for synchronous CPU-backed rendering.
Use HardwareRenderBuffer for asynchronous GPU-backed rendering on API 29+.
-
-
Constructor Summary
Constructors Constructor Description RenderBuffer(Integer width, Integer height, CommandQueue riveWorker)
-
Method Summary
Modifier and Type Method Description final RiveSurfacegetSurface()Surface used for rendering and layout operations such as Artboard.resizeArtboard. BooleangetClosed()final IntegergetWidth()final IntegergetHeight()Unitclose()Closes this resource, releasing any underlying resources. final RenderBufferrender(Artboard artboard, StateMachine stateMachine, Fit fit, Integer clearColor)Synchronously renders the artboard/state-machine into this software buffer. final RenderBuffersnapshot(Artboard artboard, StateMachine stateMachine, Fit fit, Integer clearColor)Backward-compatible alias for render. final BitmapcopyInto(Bitmap bitmap)Copies this buffer's latest rendered software pixels into bitmap. final BitmaptoBitmap()Returns a new ARGB_8888 bitmap containing the latest rendered software pixels. -
-
Constructor Detail
-
RenderBuffer
RenderBuffer(Integer width, Integer height, CommandQueue riveWorker)
-
-
Method Detail
-
getSurface
final RiveSurface getSurface()
Surface used for rendering and layout operations such as Artboard.resizeArtboard.
-
render
final RenderBuffer render(Artboard artboard, StateMachine stateMachine, Fit fit, Integer clearColor)
Synchronously renders the artboard/state-machine into this software buffer.
-
snapshot
final RenderBuffer snapshot(Artboard artboard, StateMachine stateMachine, Fit fit, Integer clearColor)
Backward-compatible alias for render.
-
copyInto
final Bitmap copyInto(Bitmap bitmap)
Copies this buffer's latest rendered software pixels into bitmap.
-
-
-
-