Jump to content
  • entries
    945
  • comments
    5,899
  • views
    930,084

Subwindows!


Josh

2,469 views

 Share

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.)

 

blogentry-1-0-96220000-1470675007_thumb.jpg

 

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!

  • Upvote 6
 Share

6 Comments


Recommended Comments

Nice! Does this mean that we will now be able to easily create multiple viewports in our games, like that famous camera monitor thing that comes up now and again?

 

Also, to completely push my luck, any chance of implementing animated textures while you're working on this? I think there was talk of this at one point, back in the day. It could make animated buttons and also cooler effects like force fields, shields, etc. I think we can kind of hack this now and I believe the water uses it through a shader but a simple function or two would go a long way.

Link to comment

Also, to completely push my luck, any chance of implementing animated textures while you're working on this? I think there was talk of this at one point, back in the day. It could make animated buttons and also cooler effects like force fields, shields, etc. I think we can kind of hack this now and I believe the water uses it through a shader but a simple function or two would go a long way.

Do you have any animated textures?

Link to comment
Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...