Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: ImGui + Sfml  (Read 1541 times)

0 Members and 1 Guest are viewing this topic.

JohnSon123

  • Newbie
  • *
  • Posts: 4
    • View Profile
ImGui + Sfml
« 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.

FRex

  • Hero Member
  • *****
  • Posts: 1845
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: ImGui + Sfml
« Reply #1 on: November 16, 2018, 08:09:09 pm »
Did you not include imgui_widgets.cpp in your project?
Back to C++ gamedev with SFML in May 2023

JohnSon123

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: ImGui + Sfml
« Reply #2 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.

FRex

  • Hero Member
  • *****
  • Posts: 1845
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: ImGui + Sfml
« Reply #3 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
Back to C++ gamedev with SFML in May 2023

JohnSon123

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: ImGui + Sfml
« Reply #4 on: November 17, 2018, 09:42:23 am »
Connecting imgui_widgets.cpp helped, thanks :)