chrisdill / raylib-cs

C# bindings for raylib, a simple and easy-to-use library to learn videogames programming
http://www.raylib.com/
zlib License
779 stars 68 forks source link

[raygui] Possible to use raygui in current stable or (4.2)? #130

Closed CodingMadness closed 1 year ago

CodingMadness commented 1 year ago

Before submitting a new issue, please verify and check:

Issue description

Import raygui so one can deal with extra windows which right now is not allowed /possible through raylib.h

Environment

Provide your Platform, Operating System, OpenGL version, GPU, Raylib-cs version, Raylib version (if applicable), and details of where or how you experienced the issue.

Best regards

jasonswearingen commented 1 year ago

raygui is removed from raylib 4.2, and is now a stand-alone library. Raylib-Cs explicitly tracks raylib, so I think they are removing raygui support. If you need Raygui, you can use Raylib-cslo, which tries to include all the raylib extras possible.

chrisdill commented 1 year ago

To clarify the position on extras. Raylib-cs is focused on the main raylib api. I tried to support extras like raygui/physac but decided to remove them to keep the library easier to maintain and allow the user to add the extras they want separately.

While a custom build can include the extras, I found that these type of extras make more sense as separate libraries, rather than any single approach being tied to Raylib-cs. For example, you could use rlImgui-cs without having 2 ui libraries in the same project.

I also think these extras might benefit more from a direct port instead of bindings as it removes the need for separate native builds though I have not tried this myself.