You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this is the best place to post this but I have been trying for the past hours to load SVG data (xml string) and render it in a viewport in PyImGui, but have not managed to do anything. I found an old thing with pyglet, and tried to use it to load it via a (manually updated) svgbatch. However it did not end up working, or I don't understand how to load the textures properly in PyImGui/OpenGL. Either way it seems like a silly way to do it, requiring svgbatch > pyglet > imgui, which is more libraries than I would like to use.
Is there some way to either directly load SVG shapes (or even just primitives) into PyImGui or some more efficient way to render it to an OpenGL texture?
Not sure if this is the best place to post this but I have been trying for the past hours to load SVG data (xml string) and render it in a viewport in PyImGui, but have not managed to do anything. I found an old thing with pyglet, and tried to use it to load it via a (manually updated) svgbatch. However it did not end up working, or I don't understand how to load the textures properly in PyImGui/OpenGL. Either way it seems like a silly way to do it, requiring svgbatch > pyglet > imgui, which is more libraries than I would like to use.
Is there some way to either directly load SVG shapes (or even just primitives) into PyImGui or some more efficient way to render it to an OpenGL texture?
svgtexture.py
main loop
The text was updated successfully, but these errors were encountered: