Closed Jamie-Troup closed 5 months ago
Doesn't this line covers this?
Add a folder which contains imgui-SFML.h to your include directories
So, if you add imgui-sfml's dir to your include directories, imconfig-SFML.h will be able to find imgui-SFML_export.h too.
Thank you, as you may have guessed I am a bit of a c++ newbie (especially with tools like C make which I was using) so yeah that does cover it (I just didn't know!).
I made sure the include directories in my make file were correctly pointing to the SFML files and it has all worked so far. Cheers
Hello,
Just wondered if this section of the readme.md,
Integrating into your project manually
imgui.cpp
,imgui_widgets.cpp
,imgui_draw.cpp
andimgui_tables.cpp
to your build/projectimconfig-SFML.h
to yourimconfig.h
file. (to be able to castImVec2
tosf::Vector2f
and vice versa)imgui-SFML.h
to your include directoriesimgui-SFML.cpp
to your build/projectNeeded a line saying
Add imgui-SFML_export.h to your build/project
? I'm only saying this because when copying the contents ofimconfig-SFML.h
intoimconfig.h
it copies the line#include "imgui-SFML_export.h"
. Without addingimgui-SFML_export.h
alongsideimconfig.h
this lead to a compiler error when building my project.I have only just started using SFML and ImGui, so please forgive me if this is completely off the mark/wrong. Thanks!