Refactor drawing API #56
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: canary/canary-rs#56
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Changes to be made:
DrawList
structure.DrawList
.DrawList
to another unfinishedDrawList
with configurable offset, clipping rect, and tint (alpha too).DrawList
into a tree of indexed triangle lists with draw commands.DrawList
IDs into script panel draw callbacks to receive their draw commands.draw_indexed()
from the scripting ABI.Notes:
TextLayout
s toDrawLists
s should store the glyphs in the layout as a vector of glyphs and not a reference to aTextLayout
. This removes the need to reference-countTextLayout
s inDrawList
s.DrawList
s should have afinish()
method in order to lock aDrawList
from future modification, and exclude the possibility of a cyclic graph of nestedDrawList
s.