by roblabla · 5y ago · 0 comments
See https://immediate-mode-ui.github.io/Nuklear/doc/nuklear.html...
The text editor gcc doesn't have any dependency, but you must provide it a backend so it can do its text editing. The example uses a nano backend written in C, but you can provide any other backend like vim or emacs, it's just a handful of functions to implement and is usually not too hard.
Its still a dependency in my books, but its not the same as saying "this requires DirectX" or whatever: it requires a backend, but you can give it any backend you want, so ideally wouldn't pull in anything you aren't already using.
Makefile.glfw3
Makefile.freeglut
Makefile.gtk
Makefile.x11
Makefile.cocoa
Since it is just a handful of lines, that should be easy to do :) Also, it would be a great way to learn how to add new backends.But as it is now, it is presented to be like glfw3 is a hard dependency.
For these imgui toolkit, it is just a few lines of code if you know what you are doing. For the library authors, it is quite a bit of work to maintain different environments and CIs to test all these backends though.