kotlin-graphics / imgui

Bloat-free Immediate Mode Graphical User interface for JVM with minimal dependencies (rewrite of dear imgui)
MIT License
594 stars 37 forks source link

Introduce Flag interface to reduce duplication of byte-manipulating functions #185

Closed kyay10 closed 1 year ago

kyay10 commented 1 year ago

Introduce interface Flag which defines byte-manipulation functions (like and, or, wo, etc) which work on its i property. This results in removing a lot of duplicate code that was redefining those functions for every Flag-like enum

elect86 commented 1 year ago

Nice idea, thanks