Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GUI Programming Nuklear #412

Open
gassechen opened this issue Feb 2, 2021 · 2 comments
Open

GUI Programming Nuklear #412

gassechen opened this issue Feb 2, 2021 · 2 comments

Comments

@gassechen
Copy link

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

@mgorges
Copy link
Contributor

mgorges commented Feb 2, 2021

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.

@gassechen
Copy link
Author

Okay. Okay I understand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants