Immediate-Mode-UI / Nuklear

A single-header ANSI C immediate mode cross-platform GUI library
https://immediate-mode-ui.github.io/Nuklear/doc/index.html
Other
9.06k stars 542 forks source link

Images fail to load in examples #528

Closed ghost closed 1 year ago

ghost commented 1 year ago

Building all of the examples(via make all), images fail to load. ([SDL]: failed to load image:) Same happens in my code where I use the icon_load function from extended.c.

SDL/SDL2 libs are installed.

Sys. info(inxi --system):

System:
  Host: artix Kernel: 6.0.12-artix1-1 arch: x86_64 bits: 64 Desktop: dwm
    v: 6.4 Distro: Artix Linux
RobLoach commented 1 year ago

You may have to run them from the correct directory.

ghost commented 1 year ago

You may have to run them from the correct directory.

Oh, yep, works now! Thanks.

ghost commented 1 year ago

One more problem: how to expand https://github.com/Immediate-Mode-UI/Nuklear/tree/master/demo/glfw_opengl3 to load images? Just using the icon_load I get a seg.fault on glGenerateMipmap(GL_TEXTURE_2D)

ghost commented 1 year ago

Nevermind, I guess that was a problem with my system somehow. (I reinstalled and it just works now?)