Jump to content
  • Advertisement
Sign in to follow this  
yodaman

I hate my base code...

This topic is 5136 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 have been using a windows/ogl base code I wrote for about 6 months but Im really not happy with it. Im just using the raw windows api, and deriving a class for the main loop functions. What I want to know is this: would it be feasable to use mfc for the most part of the engine? Or is there an alternative to mfc? What do you guys normally use? Also, how do you use the windows ini??

Share this post


Link to post
Share on other sites
Advertisement
With OpenGL, i just use SDL for windowing and input (and network and image loading and...). It's cross-platform, but even better it's just simple and nice looking. Can't recommend it enough. With SDL you don't have to touch ANY of the OS-specific calls.

Share this post


Link to post
Share on other sites
Unless you are doing lots of window stuff, there isn't much reason not to just use the basic Win32 API. In general, unless you already know MFC, you should probably use something else, since MFC is on the way out.

Share this post


Link to post
Share on other sites
Not to mention, MFC is hellish to learn and won't offer many (if any) advantages at all over something like wxWindows or SDL.

If you plan to stay in Windows, you could get the new Visual C++ Express Beta and use it for WinForms, which SHOULD interface easily enough with OpenGL.

Other options include WTL, GLUT and Allegro. WTL is an awful lot like MFC though and is becoming obsolete too (I think), GLUT is nicely cross-platform but can be rather stifling to your coding style and Allegro is cross-platform and has lots of other features, like sound, image loading and input and it has a (separate) OpenGL add-in that lets you use GL code normally. It's rather like SDL, but not really object oriented.

-Auron

Share this post


Link to post
Share on other sites
Quote:
Original post by Auron
It's rather like SDL, but not really object oriented.

-Auron


SDL is written in c and not OO at all unlless you right a wrapper for it like I did.

Share this post


Link to post
Share on other sites
Quote:
Original post by Auron
Not to mention, MFC is hellish to learn and won't offer many (if any) advantages at all over something like wxWindows or SDL.

-Auron


I don't think I'd refer to MFC as being "hellish" to learn, but for the non-tools part of game development it's completely useless anyway, it's just not suited for the task at all. For applications it's a mature API that can do just about anything, though in the future it's going to be replaced by .NET.

Share this post


Link to post
Share on other sites
I use win32 for engines and MFC for tools. MFC while borked at some places is the best solution I have found and I've looked at Fox toolkit and wxWidgets and some others like Qt. The only thing so far I don't like about MS is their d3d. Something else I wanted to mention. If you need maximum flexibility you should use win32 but you'll know by then what to use. Don't try to OO win32 as it's not worth it. Use MFC for that. You can also look at .net for usage in tools because it has functionality built in that MFC lacks. Plus, the gui is GC'ed which means no memory leaks. Those are nasty to find since MFC doesn't catch them. You can use and will have to, win32 with MFC.

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!