4 ms·
Is there usable Dear ImGui fork/sample for OpenGL 1.x?
by app4soft 6y ago
Is there usable Dear ImGui fork/sample for OpenGL 1.x?
- formerly_proven 6y agoPutting the "immediate" back in "ImGui".
- flohofwoe 6y agoIt's definitely possible but I guess nobody has done it yet because the usual GL "baseline" version these days is GLES2 (and that mostly because of WebGL). Each rendering command you get back from Dear ImGui comes with a block of vertices and indices. Typically those are stashed into 3D-API vertex- and index-buffers for efficient rendering, but they can just as well be "unrolled" to glBegin/End calls, it's just not as efficient. With a good GL driver this probably doesn't matter much though.
- greggman3 6y agoAll Dear ImGUI does is generate arrays of vertices + texture coordinates. That's it. It doesn't support any particular graphics API. There are examples in the repo but they are just that, examples. If you want to use it in OpenGL 1.0 it shouldn't take you more than a few minutes.
- account42 6y agoIt definitely does come with backends for various APIs: https://github.com/ocornut/imgui/tree/master/backends https://github.com/ocornut/imgui/tree/master/backends
- app4soft 6y ago> It definitely does come with backends for various APIs: And there are NO imgui_impl_opengl1.cpp & imgui_impl_opengl1.h, only next: ... imgui_impl_opengl2.cpp imgui_impl_opengl2.h imgui_impl_opengl3.cpp imgui_impl_opengl3.h ... UPD: Some say[0] that imgui_impl_opengl2.cpp really is imgui_impl_opengl1.cpp: > imgui_impl_opengl2.cpp is actually misnamed and should be imgui_impl_opengl1.cpp. [0] https://discourse.dearimgui.org/t/missing-glactivetexture-call/409 https://discourse.dearimgui.org/t/missing-glactivetexture-ca...
- greggman3 6y agoThose are examples. They are not Dear ImGUI. Dear ImGUI is 2 files, that's it. The rest is just examples of how to integrate it. If you can't figure out hot to draw a list of vertices with texture coordinates in any API then you probably aren't the target for Dear ImGUI