Jump to content
  • Advertisement
Sign in to follow this  
happysad

[.net] making game editors with directX

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

Hi, I want to use my existing Managed DirectX code in the editors I plan for my game (map editor + sprite animation sequence editor). What I imagine on my Form is having a work area where i'm putting the level together, and a library area from where I select the available sprites and objects. If these two areas are controls drawn with DirectX, would I need a DirectX device for each? The Device constructor takes a control as argument. If not, how do I assign the device to first draw to one control, then to another? I ask because I think it is possible to do this but I have not seen many examples of drawing to controls / drawing in windowed mode, just full screen. If you have any tips for working with DirectX for this kind of application then I would like to hear them!

Share this post


Link to post
Share on other sites
Advertisement
Yes, you can have many drivers, each for each window (control) you are rendering to. It will be slow, but you don't care because it's an editor, not your game engine.

Share this post


Link to post
Share on other sites
I highly suggest not doing that. Rather you can make a custom control that has an array of picture boxes. When one is clicked the "current file" is changed. This may require work but could be worth it compared to creating another device.

What I did for my map editor was I created just a simple list box that lists the filenames and shows the current tile within a picture box. Here is what I did...

Click here for screenshot!

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!