• Advertisement
Sign in to follow this  

Windows application with 3D graphics

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

Ok so suppose i wanted to write a Windows application in which i could change some settings for things that might happen in my particle engine, how could i code this, since it would use two different components, the direct x to display the particle engine section and windows code to change settings which might happen in real time on the particle engine?? I know its possible since i've seen it done before i just wondered how it was done. Cheers Fallout [Edited by - LordFallout on May 7, 2007 4:00:34 PM]

Share this post


Link to post
Share on other sites
Advertisement
I'm assuming that you're talking about having menu bar controls for things like particle size, frequency, whatever.

This will involve a few things. First you will have to define the menu layout that you want within an your project's .rc file (I'm not sure what this would look like in this case, and I would be interested in any resource which tells you how to make an .rc file for this kind of thing.)

Then you will need to add some kind of input handling code to your WinProc function to retrieve the activation of your menu controls and do something with the input (ie, make particles bigger, faster, etc.)

It should be something similar to this, at any rate.

Share this post


Link to post
Share on other sites
Ah yeah thats exactly how i thought it would be done, and also exactly what i wanted to however how could i specify which area was for directX in the Applications window? would i just specify that in my initialisation code, set an area that isnt the full application to run the Direct X in?

Share this post


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

  • Advertisement