SFML community forums

Help => General => Topic started by: JohnSon123 on November 16, 2018, 07:55:22 pm

Title: ImGui + Sfml
Post by: JohnSon123 on November 16, 2018, 07:55:22 pm
(I use SFML version 2.4.2)
I'm trying to connect ImGui(https://github.com/eliasdaler/imgui-sfml) to my project but get linking errors. To solve the problem I tried to connect glew and glfw, but it did not help.
Title: Re: ImGui + Sfml
Post by: FRex on November 16, 2018, 08:09:09 pm
Did you not include imgui_widgets.cpp in your project?
Title: Re: ImGui + Sfml
Post by: JohnSon123 on November 16, 2018, 08:14:52 pm
I did everything according to this instruction(https://eliasdaler.github.io/using-imgui-with-sfml-pt1/)
I added only imgui.cpp/imgui_draw.cpp/imgui-SFML.cpp/imgui_demo.cpp.
Title: Re: ImGui + Sfml
Post by: FRex on November 16, 2018, 08:24:24 pm
That guide is 2 years old. You should follow imgui readme from their repo, they split some code into this new file only few months ago. They sometimes make such drastic changes, once they changed the API abruptly which broke imgui-SFML. I had a script to make a single hpp/cpp pair out of imgui and imgui-SFML but now it's outdated too. :P
Title: Re: ImGui + Sfml
Post by: JohnSon123 on November 17, 2018, 09:42:23 am
Connecting imgui_widgets.cpp helped, thanks :)