ImGui.NET icon indicating copy to clipboard operation
ImGui.NET copied to clipboard

Win32 + Dx11 not working

Open pogrammerX opened this issue 2 years ago • 1 comments

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!

pogrammerX avatar Jan 31 '23 13:01 pogrammerX

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

vynxc avatar Nov 19 '23 08:11 vynxc