cimgui-go icon indicating copy to clipboard operation
cimgui-go copied to clipboard

[Feature Request] DirectX Renderer

Open powellnorma opened this issue 2 years ago • 3 comments

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 avatar Nov 07 '23 17:11 powellnorma

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

powellnorma avatar Nov 07 '23 17:11 powellnorma

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 avatar Nov 08 '23 07:11 gucio321

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

gucio321 avatar Feb 17 '24 12:02 gucio321