render

abstract fun render(context: MinecraftCanvasContext): DrawImage?(source)

Draws one complete presentation after the target has been cleared to transparent.

Return

an optional immutable snapshot of exactly these pixels in physical size and top-left orientation.

Parameters

context

borrowed native target, final sizes, and presentation timestamp.

Throws

when drawing fails; target and renderer resources remain protected until the adapter establishes completion of every recorded command.