Category : imgui

Heyho! Im currently getting the following error when I compile my code: Error LNK2019: unresolved external symbol "void __cdecl ImGui1::PopFont(void)" ([email protected]@@YAXXZ) referenced in function "public: void __thiscall classIm::menutabsdraw(void)" ([email protected]@@QAEXXZ) Error LNK2019: unresolved external symbol "void __cdecl ImGui1::BeginGroup(void)" ([email protected]@@YAXXZ) referenced in function "public: void __thiscall classIm::menutabsdraw(void)" ([email protected]@@QAEXXZ) Error LNK2019: unresolved external symbol "void __cdecl ImGui1::EndGroup(void)" ([email protected]@@YAXXZ) ..

Read more

I am trying to set up the docking branch of ImGui but only the Demo Window is getting rendered not anything else! Here is my code(relating to ImGui): static void InitImGui() { IMGUI_CHECKVERSION(); ImGui::CreateContext(); ImGuiIO& io = ImGui::GetIO(); (void)io; io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; io.ConfigFlags |= ImGuiConfigFlags_DockingEnable; io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable; ImGui::StyleColorsDark(); ImGuiStyle& style = ImGui::GetStyle(); if (io.ConfigFlags ..

Read more

The call to ImGui::InputText() takes a char array which I need to initialise from a std::string and then transfer the contents back to the std::string. In it’s simplest form: char buf[255]{}; std::string s{"foo"}; void fn() { strncpy( buf, s.c_str(), sizeof(buf)-1 ); ImGui::InputText( "Text", buf, sizeof(buf) ); s=buf; } However, it appears wasteful to have two ..

Read more

I used CreateWICTextureFromFile() from DirectXTK to load an animated GIF texture. ID3D11Resource* Resource; ID3D11ShaderResourceView* View; hr = CreateWICTextureFromFile(d3dDevice, L"sample.gif", &Resource, &View); Then I diplayed it on an ImageButton in dear imgui library: ImGui::ImageButton((void*)View, ImVec2(width, height)); But it only displays a still image (the first frame of the GIF file). I think I have to give ..

Read more

I used CreateWICTextureFromFile() from DirectXTK to load an animated GIF texture. ID3D11Resource* Resource; ID3D11ShaderResourceView* View; hr = CreateWICTextureFromFile(d3dDevice, L"sample.gif", &Resource, &View); Then I displayed it on an ImageButton in dear IMGUI library: ImGui::ImageButton((void*)View, ImVec2(width, height)); But it only displays a still image (the first frame of the GIF file). I think I have to give ..

Read more