Skip to content

Conversation

@msparkles
Copy link
Contributor

reopened from #223 (we moved the repo from forking from automancy's fork to forking from upstream instead because of weird Github shenanigans)

@msparkles
Copy link
Contributor Author

er how do you convert to draft fuck

@msparkles msparkles marked this pull request as draft July 29, 2025 15:00
@msparkles
Copy link
Contributor Author

msparkles commented Jul 29, 2025

incredible, sorry for the review ping lmao

@msparkles msparkles force-pushed the feat/custom-paint branch 2 times, most recently from c27bea8 to 1136fcc Compare August 2, 2025 16:29
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