HeladoDeBrownie / Nexus

creative sandbox game in early development

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

consider using stencils and offsets in place of canvases for ui

HeladoDeBrownie opened this issue · comments

using a canvas for each widget was a somewhat more complex choice than i realized at the time. it's worth seeing if the same degree of abstraction can be provided using stencils and transform offsets. this might also cause the game to use less resources

the main downside of this will probably be that it leaks abstraction if a widget needs to set transforms itself. should probably do our best to only use relative transforms within widgets

this would be mutually exclusive with making it so that widgets only redraw themselves when required, instead of every frame

considering the downsides, i think it's better to drop this one