-
Hi! I'm using ImGui with Raylib as my graphical backend. ImGui support a feature called "Multi-viewports", that allows to render data outside of main window's bounds, e.g.: But I can't find any information on achieving this behavior using Rlgl and Raylib windowing. P.S. I'm a bit newbie in advanced windowing/graphics so my question may sound obvious 😅 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
This is not achievable directly with raylib windowing. Ramon has a description of modifications that might allow this to be done. You would then be maintaining a custom version of raylib. Out of the box, raylib has only one application window managed with a global static structure shared among all the raylib API operations. The other way is to draw mini-windows within that bigger window. No pop-outs or detached dialogs. Seems like much work. I could not find anywhere in the IMGUI projects I have examined where raylib is usable as a back end. Where do you see that? I do see that glfw can be a back end to an IMGUI though. I also suspect that IMGUI being C++ (not compatible Clean C) code raises further challenges. Have you built that example? Perhaps it gives you a preferable choice for the kind of GUI applications you want to make? |
Beta Was this translation helpful? Give feedback.
-
@seclerp By design raylib does not support multiple windows but here there are some details about what is required to implement them: https://github.com/raysan5/raylib/wiki/Use-multiple-windows |
Beta Was this translation helpful? Give feedback.
This is not achievable directly with raylib windowing. Ramon has a description of modifications that might allow this to be done. You would then be maintaining a custom version of raylib. Out of the box, raylib has only one application window managed with a global static structure shared among all the raylib API operations. The other way is to draw mini-windows within that bigger window. No pop-outs or detached dialogs. Seems like much work.
I could not find anywhere in the IMGUI projects I have examined where raylib is usable as a back end. Where do you see that? I do see that glfw can be a back end to an IMGUI though. I also suspect that IMGUI being C++ (not compatible Clean C) code rai…