Recently, I encountered a problem when develop my library ImGui.SdlCs to render the UI with SdlRenderer.
The major problem is that the widgets couldn't be rendered entirely like following.
Moreover, the widgets are not fully painted in the window.
I'm not sure what makes it wrong, but I'm sure the code is equivalent to example_sdl2_sdlrenderer2 of original imgui c++ code.
And I have located the problem in SDL_RenderGeometryRaw() at line 148 in file.
So, what could be the cause of the problem ?
Recently, I encountered a problem when develop my library ImGui.SdlCs to render the UI with SdlRenderer.
The major problem is that the widgets couldn't be rendered entirely like following.
Moreover, the widgets are not fully painted in the window.
I'm not sure what makes it wrong, but I'm sure the code is equivalent to
example_sdl2_sdlrenderer2
of original imgui c++ code. And I have located the problem inSDL_RenderGeometryRaw()
at line 148 in file. So, what could be the cause of the problem ?