treeform / pixie

Full-featured 2d graphics library for Nim.
MIT License
743 stars 28 forks source link

Provide example with ImGui and GLFW #361

Closed modoodalvi closed 2 years ago

modoodalvi commented 2 years ago

Expand GLFW example with ImGui support similar to the example provided by nimgl.

guzba commented 2 years ago

If you are using ImGui for rendering I don't think you'd have need for Pixie. Could you explain a bit about how you're using them together?

treeform commented 2 years ago

Sorry I don't think we want to write example for every possible library out there.

This request does not make sense for me, I think ImGui is kind of like competitor to pixie?

Closing this. Feel free to reopen if we are missing some thing?

modoodalvi commented 2 years ago

I was actually looking to port my project to pixie to see how it compares to my current Skia setup, but couldn't stitch together a working example.

I am currently using Skia with GLFW and DearImGui on a project. I found that the combination using a 2D graphics library with ImGui pretty common, such that Skia offers a ImGui layer. In general I saw a lot of projects where it is used complementary. ImGui to configure, edit, visualize and debug the scene and the graphics library to actually render the scene. Having sponsors like Google, Adobe, Epic, Ubisoft, Nvidia among others DearImgui doesn't seem like a random library out there.

As with the GLFW example proving pixie to be useful in "realtime" scenarios, I thought having an example with ImGui will prove helpful to push pixies adoption in scenarios where ImGui usage together with a graphics library is simply existential.

treeform commented 2 years ago

We probably just don't know DearImGui well. I did not know it was possible to use Skia + imGui together. I never used it. And because of this lack of knowable we don't know how to provide example.