Jump to content
  • Advertisement
Sign in to follow this  
Aardvajk

Direct3D rendering into a normal window

This topic is 3936 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

I was wondering if it is possible, with Direct3D and unmanaged C++, to: a) create a Direct3D window that is a subwindow of a normal Windows window that can contain menus, toolbars, buttons etc b) create an MDI application of which a child window is a windowed Direct3D window but can still interoperate with the rest of the application c) set up Direct3D to render to an offscreen surface of some kind that I can draw to a window with GDI I've had a hunt around the internet and can't really find anything. If it is possible, I was thinking about ditching my current map editor that is implementing its own GUI in Direct3D in favour of a normal Windows app that has a sub-window of some kind into which I can use Direct3D to render. Any links, or information, or a downright "No, you can't" would be appreciated.

Share this post


Link to post
Share on other sites
Advertisement
yes you can do this as I have. can't remember how i did it but i believe i just created 2 direct 3d instances and set one to each window handle.

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!