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
Currently we're using the legacy document system to create a separate document just for drawing overlays. The idea at the time was that we should be able to reuse its drawing API for any sort of overlays we want to draw, but that ended up being a bad idea. Now, as we deprecate the legacy document system, we need to replace the overlays system which was already rather decrepit.
The better solution is an immediate mode approach where each tool is in charge of drawing shapes to the screen every frame. As the document is moved around or things change, the overlays are redrawn to keep pace.
The text was updated successfully, but these errors were encountered:
Currently we're using the legacy document system to create a separate document just for drawing overlays. The idea at the time was that we should be able to reuse its drawing API for any sort of overlays we want to draw, but that ended up being a bad idea. Now, as we deprecate the legacy document system, we need to replace the overlays system which was already rather decrepit.
The better solution is an immediate mode approach where each tool is in charge of drawing shapes to the screen every frame. As the document is moved around or things change, the overlays are redrawn to keep pace.
The text was updated successfully, but these errors were encountered: