Question about maybe using imgui for love2dcs?
is it possible to draw onto a imgui widget?
In my oponion, It is feasible. I search for C# version of ImGui. and i get https://github.com/mellinoe/ImGui.NET It said :
Dear ImGui does not care what technology you use for rendering; it simply outputs textured triangles.
And I found that ImGui.NET can be used with XNA : https://github.com/mellinoe/ImGui.NET/tree/master/src/ImGui.NET.SampleProgram.XNA
So you just need to adapt this folder with Love2DCS, you should be able to achieve your goal.
That would be nice, love needs a gui system
wait so this should run in love2cs's draw hook? or does it need special implementation?
i think it need to update IO information and generate rendering instructions, so we need give the ImGui the input, and implement the rendering instructions: :
// on load ..
ImGui.SetCurrentContext(ImGui.CreateContext())
// ... game loop ...
while (true )
{
var io = ImGui.GetIO();
io.deltaTime = ... // update time
io.KeysDown =// ... update mouse & key input
ImGui.NewFrame();
ImGui.Text() // ... layout gui
// layout gui
ImGui.Image() // layout gui ....
ImGui.Render();
var drawData = ImGui.GetDrawData()
// render the draw data here :
Render_drawData(drawData);
}
this would be nice but there is actually Eto.Forms which might be better for native looking gui
https://github.com/picoe/Eto
it would need a love2dcs implementation though.