Jump to content
  • Advertisement
Sign in to follow this  
flashinpan

DirectX inside Windows Form area

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

Here is what we are thinking of doing for our newbie game: Game Design Idea We want to do it this way versus running DirectX "full screen". I am looking for some help on how to do it the way I have shown in my LINK above. I don't mind some advice on why / why not doing it another way. Is there some demo source code for DirectX that shows how to run our DirectX calls in a reserved area of our Windows App?

Share this post


Link to post
Share on other sites
Advertisement
Yeah - Google "Jeremy Spiller" he has a good control you can plug into your applications

EDIT - sorry for double post, AOLs fault

Share this post


Link to post
Share on other sites
I think if you look at the parameters for the direct3d initialization the parameter where you normally pass the form argument takes any form component - so you can, for example, pass it a panel inside your form, instead of the form itself. Just be careful you setup the panel as the right size/position in your form, and making sure the dimensions are the same when you initialize d3d.

Granted I could be remembering this incorrectly, as the only time I attempted this was stopped by problems with learning Managed C++ at the same time (however I never got an error passing the panel instead of the form, for whatever that's worth).

Share this post


Link to post
Share on other sites
It doesnt actually work that easily, even though it should - the best way is to use spiller's class

I did try your way (couch monster) for a while but had no luck.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!