AllenDang / cimgui-go

Auto generated Go wrapper for Dear ImGui via cimgui
MIT License
296 stars 42 forks source link

[Feature Request] DirectX Renderer #245

Open powellnorma opened 8 months ago

powellnorma commented 8 months ago

Related problem

https://github.com/AllenDang/giu/issues/170#issue-863120297 https://github.com/AllenDang/giu/issues/147#issuecomment-789963826

Your request

It would be useful to be able to use the DirectX renderer, so that the GUI starts even if no "real" GPU driver is installed. I tested the demos from https://github.com/ocornut/imgui#demo and the directX executables work just fine. Is this feasible?

Currently I get: APIUnavailable: WGL: The driver does not appear to support OpenGL

Alternative solution

No response

Additional context

No response

powellnorma commented 8 months ago

Ok, what I found was this: https://github.com/AllenDang/giu/blob/04cd961c1d12d31a7bcd329350a686d6c76cc3fe/MasterWindow.go#L88

So probably some wrapper logic would have to be implemented in imgui-go first? https://github.com/AllenDang/cimgui-go/blob/f9856eb4a9a725c37e34b415d3eabc00e90276fa/glfw_backend.go#L187

gucio321 commented 8 months ago

Yep. There is a backend implementation in cimgui and other backend should be implemented there first. Unfortunately i can't do anything about directx as I'm a Linux user

gucio321 commented 4 months ago

here is C++ Code. We need to implement it like sdl and glfw stuff. https://github.com/ocornut/imgui/tree/master/examples/example_sdl2_directx11