Open ahungry opened 1 year ago
I have spent time with it and failed to port this example. The problem is that they use a gui_file_dialog.h module together with the example. And because of the complexity of C file includes it doesn't work when we want to include just a little module in C that uses raygui library.
For reference some files:
Now the challenge is to correctly include raygui.h
into gui_file_dialog.h
so that it works with all the imports. I don't believe it is possible. We kind of have to include that header file into the main compilation target. But we can't do it on-demand since it may require additional #define
directives to work properly. I will surrender here.
I see the paint program has a Save button, which produces a file on save, and supposedly the library here has support for raygui - I'm new to raylib, raygui, and nim, so hoping to find a good reference to do something simple with the 3.
I found https://github.com/raysan5/raygui/blob/master/examples/custom_file_dialog/custom_file_dialog.c, but when I try guessing at names for the translations based on how raylib did it, I'm hitting some snags (initGuiFileDialog() doesn't exist, at least not when I just
import nimraylib_now
).Any help would be greatly appreciated!