Skip to main content

Module cursor

Module cursor 

Source
Expand description

In-engine mouse cursor geometry. A follow_cursor Sprite is drawn as a classic arrow pointer rather than a plain quad: a filled polygon with a contrasting outline so it stays legible over any scene. Like the rest of the UI overlay, it rides the text pass’s sentinel-UV solid-fill path (u < 0), so it needs no new pipeline and renders on every backend. The arrow’s diagonal edges are real geometry, not a stair-stepped stack of quads.

Functions§

build_cursor_calls_into
build_cursor_calls, appending onto an existing draw list. Sprites without follow_cursor are skipped, so the caller can pass its whole sprite slice.