Skip to main content

Module render

Module render 

Source
Expand description

What the client draws.

Structs§

Body
A tracked entity’s body this frame (yog_body::wire): each handler adds its ops to ops (pose vanilla parts, turn, draw meshes…).
Camera
The camera this frame, as vanilla placed it, and what the mods make of it: each handler adds to out, seeing the one before’s.
Hud
Fired every frame when the HUD is rendered. delta_tick is the partial-tick interpolation factor (0.0–1.0).
Page
The picture of a book page of type drawn drawn in rect ([x, y, w, h], screen pixels), every frame the page is open; keyed by its drawer.
Tooltip
A stack’s tooltip picture drawn in rect ([x, y, w, h], screen pixels); keyed by the item (item::Picture sized it).
Ui
A mod’s screen drawn this frame (after its background); keyed by the screen’s id.
World
Fired every frame at the end of world rendering (the frame’s graphics carry the camera: view_proj, camera_pos).