Subwindows!
When the new Window::Embedded style is used in the window creation function, the window will appear as a panel, as part of the parent window. The black region here is an embedded window parented to the main window. (The tabber and other panels and controls are all just Leadwerks objects; Windows doesn't recognize them or know they're there, as they are just created by Leadwerks structures and drawing commands.)
Why is this special?
The embedded child window uses single-buffer drawing mode and can be used to create a rendering context, just like you do now. In Leadwerks Editor, this is used for viewports you can interact with. In Leadwerks Game Launcher, this is used for our HTML renderer which displays a grid of available games, by using Chromium Embedded Framework to render an HTML page to a texture and display it in 3D. (The Workshop browser in Leadwerks Editor works the same way).
As you can see, it takes a lot of work to make something appear simple!
- 6
6 Comments
Recommended Comments