Search code examples
c++visual-studioglfwimgui

Can't install ImGui in a GLFW project in Visual Studio (C++)


I have a GLFW project in Visual Studio and I want to add ImGui to it. I followed a tutorial to install it and I simply picked up some file and added to the project but it gives me a lot of error (+200). The main error is:

#error

"Cannot detect OpenGL loader!"

The tutorial that I followed is this:

https://www.youtube.com/watch?v=nVaQuNXueFw&ab_channel=TheCherno.

I tried to find some guides but I couldn't found anything.


Solution

  • Do you have any OpenGL loader library such as GLEW or GLAD? Without an OpenGL loader ImGui is not gonna work. If you don't have any, download GLEW or GLAD.

    Here is a video about how to setup