Jump to content
  • Advertisement
Sign in to follow this  
ro4tub

How to make a 2d game map editor?

This topic is 4625 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 use MFC and DX9 to implement it. i split the main window,the left view to choose the pic and display it's preview. the right view to display the map. and i want to ask whether i have to init the library twice ,because in the left view i will render the pic for preview and in the right view i will render the pic too.

Share this post


Link to post
Share on other sites
Advertisement
No, you should be fine, if I understand you correctly. Attempting to init DX9 twice (via multiple calls to Direct3DCreate9 will probably get you the same COM pointer, underneath (don't quote me on that though, I don't have the documentation handy or the means to test it right now).

What you'll want to look into is multiple viewports or (even better) multiple swap chains. There's a code sample (not exactly a tutorial, but easy enough to follow) for both here and if you search a bit using those terms, you can probably find others.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!