Advertisement

MGF or not MFC

Started by November 22, 2000 09:31 PM
3 comments, last by Wiz74 23 years, 11 months ago
Hi all, been awhile since I had the chance to sit down and have a look at some OpenGL code. Have been recently teaching myself how to use MFC (Microsoft Foundation Classes), and was wondering what it is like to do OpenGL with, or even if you can? As you may have guessed I have only just started looking for resources and tutorials on MFC and therefore still only have a basic knowledge of MFC. I know that basically its a process that sits on top of the API''s, and does a lot of the work for you. I haven''t actually written anything with MFC''s yet. Been to busy writing Progress (4GL) code at work, and playing Diablo 2 (when I get the chance to kick my 5 yr old son off my home PC long enough to do anything) at home. Mind you nearly finished Diablo 2, and therefore can begin programming for fun again, at least until I get another game I get addicted to Thanx to all, and yes I realise that I have probably just started a large debate over whether to use MFC or not! But isnt that half the fun of a message board? And it then gives you an insight into both sides. Just another Corporate slave trying to release himself into the OpenGL void.
Just another Corporate slave trying to release himself into the OpenGL void.
i wouldnt recommend using mfc to make a game with, its not really designed to for that, im not saying u can''t but im saying u shouldn''t.
your best bet would be a gamelibrary like plib http://plib.sourceforge.net/

http://members.xoom.com/myBollux
Advertisement
Hi,

unless you have a UI stressing app, I wouldn''t use MFC. But there is no problem doing an OpenGL based MFC class. You can download some old (and crappy ;-) ) sample sources for gl based MFC apps (or MFC based gl apps for that matter) on my homepage. But you should also look into MSDN, there are some examples how to develop a CView derived OpenGL class...


Tim

--------------------------
glvelocity.gamedev.net
www.gamedev.net/hosted/glvelocity
Tim--------------------------glvelocity.gamedev.netwww.gamedev.net/hosted/glvelocity
quote: Original post by Wiz74

Hi all, been awhile since I had the chance to sit down and have a look at some OpenGL code. Have been recently teaching myself how to use MFC (Microsoft Foundation Classes), and was wondering what it is like to do OpenGL with, or even if you can? As you may have guessed I have only just started looking for resources and tutorials on MFC and therefore still only have a basic knowledge of MFC. I know that basically its a process that sits on top of the API''s, and does a lot of the work for you. I haven''t actually written anything with MFC''s yet. Been to busy writing Progress (4GL) code at work, and playing Diablo 2 (when I get the chance to kick my 5 yr old son off my home PC long enough to do anything) at home. Mind you nearly finished Diablo 2, and therefore can begin programming for fun again, at least until I get another game I get addicted to

Thanx to all, and yes I realise that I have probably just started a large debate over whether to use MFC or not! But isnt that half the fun of a message board? And it then gives you an insight into both sides.

Just another Corporate slave trying to release himself into the OpenGL void.


MFC and OpenGL work great together. If you want to write an app that takes over the fullscreen (every pixel) like games, then MFC is not the proper tool. MFC and OpenGL would be ok for games if you can tolerate the Windows border. I converted one of Jeff''s tutorials into a minmal MFC/OpenGL program without the VC++ wizards and no Doc/View architecture to demonstrate how easy it is to do. It was posted on this website for a while, but I can''t find it now. I don''t know if it ever made it to the NeHe CD or not. I believe the Corn Flake Zone has a tutorial on setting up OpenGL in a SDI MFC app. If you can''t find anything then e-mail me.

Joel

quote: Original post by Wiz74

Hi all, been awhile since I had the chance to sit down and have a look at some OpenGL code. Have been recently teaching myself how to use MFC (Microsoft Foundation Classes), and was wondering what it is like to do OpenGL with, or even if you can? As you may have guessed I have only just started looking for resources and tutorials on MFC and therefore still only have a basic knowledge of MFC. I know that basically its a process that sits on top of the API''s, and does a lot of the work for you. I haven''t actually written anything with MFC''s yet. Been to busy writing Progress (4GL) code at work, and playing Diablo 2 (when I get the chance to kick my 5 yr old son off my home PC long enough to do anything) at home. Mind you nearly finished Diablo 2, and therefore can begin programming for fun again, at least until I get another game I get addicted to

Thanx to all, and yes I realise that I have probably just started a large debate over whether to use MFC or not! But isnt that half the fun of a message board? And it then gives you an insight into both sides.

Just another Corporate slave trying to release himself into the OpenGL void.


This topic is closed to new replies.

Advertisement