haxeui / haxeui-kha

The Kha backend of the HaxeUI framework -
http://haxeui.org
MIT License
45 stars 16 forks source link

ComponentGraphics support #59

Closed AbeGellis closed 1 year ago

AbeGellis commented 1 year ago

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.

Tested against the Component Explorer "Canvas" and "Canvas/As Icons" examples here: https://github.com/AbeGellis/HaxeUI-Kha-ComponentGraphics-Impl

ianharrigan commented 1 year ago

oh - wow - thanks loads! Ive been meaning to get this done - you just saved me a bunch of time - thanks again!