You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically, have a quick method (hitbox) that the caller can use to check whether the item is in the viewport, then a slow method to actually get the information needed to render it. The slow method could return something like &dyn Draw or a concrete enum type, I'm not sure what would be best.
The text was updated successfully, but these errors were encountered:
Brainstorming some ways that we could make the GUI nicely pluggable. I think that we need to be able to decompose to a handful of simple items:
Basically, have a quick method (hitbox) that the caller can use to check whether the item is in the viewport, then a slow method to actually get the information needed to render it. The slow method could return something like
&dyn Draw
or a concrete enum type, I'm not sure what would be best.The text was updated successfully, but these errors were encountered: