Implementation of previously-empty ComponentGraphicsImpl for use in Canvas components, based partially on HaxeUI-RayLib implementation as suggested on Discord. Created as a practice exercise with kha.Graphics2.
Also adds a DrawComponentGraphics constructor to BatchOperation to play nicely with batching, scissors, etc.
Implementation of previously-empty
ComponentGraphicsImpl
for use inCanvas
components, based partially on HaxeUI-RayLib implementation as suggested on Discord. Created as a practice exercise withkha.Graphics2
.Also adds a
DrawComponentGraphics
constructor toBatchOperation
to play nicely with batching, scissors, etc.Tested against the Component Explorer "Canvas" and "Canvas/As Icons" examples here: https://github.com/AbeGellis/HaxeUI-Kha-ComponentGraphics-Impl