lambdanative icon indicating copy to clipboard operation
lambdanative copied to clipboard

GUI Programming Nuklear

Open gassechen opened this issue 4 years ago • 2 comments

Hi. It could be incorporated as a GUI?

Nuklear is a minimal-state, immediate-mode graphical user interface toolkit written in ANSI C and licensed under public domain. It was designed as a simple embeddable user interface for application and does not have any dependencies, a default render backend or OS window/input handling but instead provides a highly modular, library-based approach, with simple input state for input and draw commands describing primitive shapes as output. So instead of providing a layered library that tries to abstract over a number of platform and render backends, it focuses only on the actual UI.

https://github.com/Immediate-Mode-UI/Nuklear

gassechen avatar Feb 02 '21 14:02 gassechen

Sorry, but I am not quite sure why we would want to add this as in how would this advance our platform? There were similar suggestions in #126. In the end, we barely have enough resources to support the current framework, so unless you wanted to contribute this as a fully integrated implementation via a pull request for consideration, I don't think this is feasible.

To make this work, we would not only have to add Scheme to C bindings for all functions, add out input handler bindings, and from their documentation, also write platform-specific drawing code, as "To draw all draw commands accumulated over a frame you need your own render backend able to draw a number of 2D primitives. This includes at least filled and stroked rectangles, circles, text, lines, triangles and scissors." - if I were to add new drawing code, I'd focus on adding Metal for iOS as eventually, we'll lose OpenGL support there.

mgorges avatar Feb 02 '21 18:02 mgorges

Okay. Okay I understand.

gassechen avatar Feb 03 '21 00:02 gassechen