gabstv / ebiten-imgui

Dear ImGui renderer for Ebitengine
MIT License
122 stars 18 forks source link

renderer.New method requires an parameter of type *imgui.FontAtlas. How do I create this *imgui.FontAtlas object and assign it to renderer.New method? #19

Open xtrn143 opened 1 year ago

xtrn143 commented 1 year ago

renderer.New method requires an parameter of type imgui.FontAtlas. How do I create this imgui.FontAtlas object and assign it to renderer.New method? I don't know how to create imgui.FontAtlas, imgui.CurrentIO().Fonts() returns the imgui.FontAtlas object, but I can't call imgui.CurrentIO() before, what do I do?