DVUI

Picture

Captures dvui drawing to part of the screen in a Texture.

Fields

#
r:Rect.Physical
Rect.Physical
texture:dvui.TextureTarget
dvui.TextureTarget
prev_target:dvui.RenderTarget
dvui.RenderTarget
render_cmds:*std.ArrayList(dvui.RenderCommand)

Uses arena allocator

render_cmds_after:*std.ArrayList(dvui.RenderCommand)

Uses arena allocator

prev_dr_cmds:?*std.ArrayList(dvui.RenderCommand)
?*std.ArrayList(dvui.RenderCommand)
prev_dr_cmds_after:?*std.ArrayList(dvui.RenderCommand)
?*std.ArrayList(dvui.RenderCommand)

Functions

#
start

Begin recording drawing to the physical pixels in rect (enlarged to pixel boundaries).

stop

Stop recording.

png

Encode texture as png. Call after stop before deinit.

jpg

Encode texture as jpg. Call after stop before deinit.

deinit

Draw recorded texture and destroy it.