-
Notifications
You must be signed in to change notification settings - Fork 521
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
Hell o world #369
Comments
PRs are very well welcome. Btw. glance over our review micro-guideline at the end of our |
I just cant make this work. There should be an helloworld example for every backend. |
The main.c for each demo has a pretty good example... Go to that directory, and use |
nuklear is a bit too much low level for me :| |
That's why there are high-level bindings (e.g. Python bindings should be very easy to use) - see our readme and wiki (under "Integrations"). But if you have any suggestions how to make Nuklear (or bindings) higher-level, we're all ears 😉. Contributions also very much welcome! |
yes: make the "/* init gui state */" part in the readme example automatic Also I had a look at the Xorg backend, and look a lot like Xlib, it look more like half of a uitk |
You mean to provide an example in a language which doesn't require variable declaration? E.g. Python (there are of course Nuklear Python bindings)? In Python you wouldn't need an explicit "init state" section. Note, the init section in readme is not Nuklear-specific - it's just variables you want to use for your data (not Nuklear's data). So Nuklear can't cut down on it - that's why I understand your suggestion as using a different language which does the init "behind the scenes" as e.g. Python does. Do I understand you correctly?
Yep, you read it correctly - a backend has nothing to do with how Nuklear is being used by programmers and is ~100% specific to the given backend (e.g. Xorg backend is of course 100% Xlib). |
No, there should be a complete hello world for c in the readme, and 1 for all the languages in the docs.
No, I dont mean the backend source code, I mean the code needed to use/initialize nuklear. |
That would be a very long README. Each language binding has its own implementation and needs. Which language are you most familiar with? |
If you're still looking to use C, but want something a bit more higher level, raylib is actually pretty nice. I made some bindings for it over at https://github.com/RobLoach/raylib-nuklear |
yes, something like that, reduce the number of lines needed to initialize, from 100 to 1. |
Raylib is the backend in that case. Use whichever framework you're most familiar with 😉 |
I see that you failed to provide an hello world example, and I can see why. In the sample on the readme you omitted the font hell that you must do. I hope its temporary. The default font and size should be automatic, and there should be an optional function like setdefaultfont( path, size ) and setdefaultfont( name, size ).
The text was updated successfully, but these errors were encountered: