Replies: 1 comment 1 reply
-
I'm quite new to BGFX, but I guess you could do something similar using different view layers and framebuffers for each window. For e.g, Create a framebuffer for a specific (let's 0 is your main window, 1 is an other window etc..) :
submit to views, i'm pretty sure you can submit multiple times to different views Again this is psudo-code and I have no idea about how it should be done, just an assumption here Edit: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm considering using BGFX to render plug-in windows in a larger application.
I need to be able to have several windows open at the same time, each with its own context, and with the possibility to share some data (textures etc) between the contexts.
I saw the Windows example but it looks like only one context is created for all windows, so it's not exactly what I'm looking for. Also the FPS drops considerably as soon as several windows are opened.
I see that BGFX initialization functions are static and that it uses global variables to store the context and PlatformData, so it seems that my use case is not supported.
Is this something that can be worked around easily or is the library simply not designed for this?
Beta Was this translation helpful? Give feedback.
All reactions