Jump to content
  • Advertisement
Sign in to follow this  
QuinnJohns

Dialogs via Resource Editor, accessing certain objects via directx

This topic is 3805 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

A totally off the wall question, say I was to use the resource editor in visual studio, to create a dialog, with group boxes and such, is there any way to particularly render someone exclusively on where a "picture box" is located on that dialog? I know this wouldn't allow for multi-platform support, but I just basically want to know if its possible, and any idea how if it is... Thanks.

Share this post


Link to post
Share on other sites
Advertisement
A picture box is just a window, so you could try getting a handle to it and passing that to Direct3D when you create the device. However this may cause a few issues if Direct3D modifies the window any way (which it does in certain situations, such as going full-screen) that conflicts with the control's default processing. You may just want to create your own window that's a child of the dialog (or even the pixture box), so that you can manage it yourself.

If this dialog is meant to be open while you also have a main window open with a device attached to it, then a better idea would probably be to simply render what you want on the picture box to a texture and then update the picture box using regular Win32/GDI functions. This will be slow however since it involves reading data from GPU memory and probably causing a stall, which means if you're going to be rendering to the picture box very often you'll probably want to double buffer your render target texture (in other words, render to one texture while using another to update the picture box. Then switch every frame).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!