raysan5 / raygui

A simple and easy-to-use immediate-mode gui library
zlib License
3.26k stars 280 forks source link

GuiLoadIcons example? #404

Closed JupiterRider closed 2 months ago

JupiterRider commented 2 months ago

Hey @raysan5 , do you have an example how to use GuiLoadIcons for .rgi-files or could you provide one?

Thanks in advance! :)

raysan5 commented 2 months ago

@JupiterRider Did you try just calling GuiLoadIcons("your_icons_file.rgi")? Afaik, nothing else is required.

What issue did you find?

JupiterRider commented 2 months ago

@raysan5 GuiLoadIcons returns char **, which seems to be a two dimensional array. How do I use the return value then?

raysan5 commented 2 months ago

@JupiterRider Why do you need the return value? You can just call GuiLoadIcons("your_icons_file.rgi", false) and ignore the return.

JupiterRider commented 2 months ago

Ah, ok. That's simple. Thanks!