Skip to content

add the ability to have custom user painting - #293

Open
madeline-sparkles wants to merge 3 commits into
SecondHalfGames:mainfrom
madeline-sparkles:feat/custom-paint
Open

madeline-sparkles wants to merge 3 commits into
SecondHalfGames:mainfrom
madeline-sparkles:feat/custom-paint

Conversation

@madeline-sparkles

Copy link
Copy Markdown
Contributor

No description provided.

Madeline Sparkles added 2 commits November 6, 2026 19:32
add the ability to track user paint calls
add a struct called Globals to simplify the logic, and add globals to PaintDom for users to attach custom renderers to
add a debug assertion to detect when paint_all() is called more than once a frame
add several comments to declare what parts of the painting functions are yakui's and what parts are supposed to be modified, to allow users to track rendering changes from upstream more easily, and to declare what parts of the functions should be considered API-changing if altered
add several helper functions in the rendering backends in order to simplify the rendering function to something users can copy entirely into their code without copying anything else
add examples for the custom rendering

publicize multiple important types and fields and functions in order to allow users to handle rendering themselves
publicize important fields previously exposed via functions to allow Rust to understand the partial borrowing
introduce new structs to solve the aforementioned partial borrowing issue

lift the clipping rect of a draw call outside of the draw call struct
lift rendering functions up to top-level to make copying the function into user's own code easier

fix disjointed docs & reorganize related functions
fix the weird ungrammatical comment on main()
use yakui::Rect in the file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant