ImGuiNET / ImGui.NET

An ImGui wrapper for .NET.
MIT License
1.87k stars 304 forks source link

Win32 + Dx11 not working #384

Open pogrammerX opened 1 year ago

pogrammerX commented 1 year ago

Howdy! I am writing a game engine, and am trying to implement ImGui!

I am using ImGui.Net.DirectX as my wrapper.

Running this code:

        ImGui.CreateContext();
        ImGui.StyleColorsDark();
        ImGui.ImGui_ImplWin32_Init(Game.WindowHWND);
        unsafe
        {
            ImGui.ImGui_ImplDX11_Init((void*)Game.Direct2DDevice, (void*)Game.Direct2DContext);
        }

gives me an error: Unable to find an entry point named 'ImGui_ImplWin32_Init' in DLL 'cimgui'

i have downloaded the latest cimgui version from https://github.com/mellinoe/ImGui.NET-nativebuild but it still doesnt work!

vynxc commented 10 months ago

the backends are no longer inside cimgui, i have this issue aswell. you can get an old version from https://github.com/Sewer56/ImGui.NET/blob/9b4bf4ea2cfefc72d9ce9c6044ae51ea9e2eb690/deps/cimgui/win-x64/cimgui.dll but its old as shit and the styling wont work anymore