-
Notifications
You must be signed in to change notification settings - Fork 16
Splitting up the Raylib modules further (audio, textures, text) #39
Comments
Thank you for your kind words! Regarding your request, do I understand correctly that you would like to link a separate raudio.c file with As I can see from raudio.c file, the
My understanding is that you can use same header as Let me know if you have any troubles with that. |
Hm, I had to do that alone with pulling in many of the external header files that raudio uses and putting them in the correct directory. After doing that though, I ended up with the following error:
Not sure if I have the wrong version of raudio, this is from the 3.7 release. |
I changed some of the compile flags, now it looks like this: The current error is
My knowledge of C is pretty rusty, not really sure why this is causing an error. |
Thank you for the attempts! It looks like it needs a lot more effort then. I'm a bit worried that this will grow too large since I already support 2 different versions of mangled/not mangled versions due to conflicting names on Windows machines. I should have free time in a week or two, I will take a look what could be sensible, it might be easy to do too. About the dependencies, do I understand correctly that these were only the files listed here, or you had to do any additional chores? And last question, do you plan to use it together with the whole Raylib or just as a single unit with no intention to use any other units from Raylib? I think in the output you provided happens exactly that, some conflicting files are included several times. |
Sorry about that, I should have provided at least a bit more information: My directory structure looks like this:
With
And the command to compile is the same as above, So basically the only additional libraries I had to add (other than required dependencies) was I plan on using this without any other parts of Raylib. I'm making a super small headless music player that suits my needs, so I shouldn't need any other Raylib modules. |
Alright, thank you! Looks like it should be relatively easy to do, I will try to implement it in the nearest future. |
@ajusa to give a heads up here. I didn't get to work on it as it appears a lot more complicated than just adding a few lines of code. The problem is that right now I support 2 separate ways of packaging raylib C library - by statically compiling it and by linking it dynamically. With support for separate modules this matrix splits yet again into more derivations which looks too complicated. I think the right way is to drop dynamic linking and always compile statically. And then add ability to compile only specific parts of the raylib library instead of the whole package. I would like to hear your thoughts on this and whether you found any solution to this problem yet. Dynamic linking looks as a less priority than separate packages from raylib. And I don't think I can afford to support it all. |
Note to self: the |
Hello,
Thank you so much for the excellent Nim wrapper of raylib. One feature that I would like to request is for the modules to be split up closer to what Raylib itself offers. For example, splitting out raudio, textures, text, etc. My specific use case involves just playing audio, so I don't want to have to compile in all of the GUI/X11 related dependencies if possible.
The text was updated successfully, but these errors were encountered: