mirror of
https://github.com/ocornut/imgui.git
synced 2025-02-20 04:21:01 +01:00
Updated Multi Viewports (markdown)
parent
a35843418d
commit
8853485dee
@ -33,11 +33,14 @@ if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable)
|
||||
{
|
||||
ImGui::UpdatePlatformWindows();
|
||||
ImGui::RenderPlatformWindowsDefault();
|
||||
// TODO for OpenGL: restore current GL context.
|
||||
}
|
||||
```
|
||||
|
||||
That's pretty much it.
|
||||
There are a few additional multi-viewports related configuration flags in the io structure which you may toy with.
|
||||
There may be additional calls required surrounding this depending on the backend you are using: OpenGL in particular needs backup/restore of current GL context. Check the [example project](https://github.com/ocornut/imgui/tree/docking/examples) appropriate to your setup for details.
|
||||
|
||||
There are a few additional multi-viewports related configuration flags in the IO structure which you may toy with.
|
||||
|
||||
If you are using a custom back-end, refer to the `ImGuiPlatformIO` structure and existing `backends/` + `examples/` to implement support for multi-viewports in your engine. This is not particularly easy to add.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user