Jump to content
  • Advertisement
Sign in to follow this  
edwin2026

What the best method to make interface for map editor?

This topic is 3627 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, currently I am working for my school's project on the development of some sort of general-purpose world editor. Since I am required to implement the terrain generation part using specified algorithm, I coded the terrain rendering directly using directX, and not using any graphical engine What kind of method can I use to make the user interface for this map editor? From internet, I found some using win32 API and also MFC, but not sure what is the best to use in this case. Any helpful suggestions will be appreciated. Thanks

Share this post


Link to post
Share on other sites
Advertisement
Win32 is generally too low-level for real use in a GUI app...you can use it to accomplish what you want, but it generally takes too long (especially since you'll end up making C++ wrappers for lots of things, at least if you're using C++). MFC is a relic from olden times...I recommend staying away from it.

.NET and Windows Forms are tools of choice these days. All you need to do is make simple managed wrappers for your native classes using C++/CLI, and then you can write your whole front-end in C# and have it work with your wrappers for your graphical components.

Share this post


Link to post
Share on other sites
Hi, thanks dannielum. But I am making 3d map editor.

MJP, could you elaborate more detail how do I can create this wrapper class to link my C# interface with directX application? Thanks

Share this post


Link to post
Share on other sites
edwin you'll want to check out the MSDN documentation on C++ Interop. There's also a very simple example that demonstrates how to make a managed wrapper for a native class.

You should also be able to find some resources by searching google for "managed wrapper", or "managed wrapper C++".

Share this post


Link to post
Share on other sites
Quote:
Original post by CmpDev
Seeing as this is not in for beginners and also to see what other think of the method, personally I feel it is a hack which could trip you up, there is an article on the Visual C++ team blog.


Wow, what a hack! But a very neat hack, if I do say so myself. [smile]

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!