PDA

View Full Version : How to start ? Using MFC and OpenGL



songeb
02-01-2002, 07:03 AM
Hi all,

If I want to build an application program which use the Microsoft Visual C++ as the GUI (MFC) how do I integrate it with my OpenGL program? How do I start it? any good references I can read on?

For example, let say I want to build something like adobe photoshop, all the GUI I want it to be build using Visual C++ (including all the buttons etc) but for the screen (the editable graphic in photoshop) I want to use OpenGL.

Hope anyone can help me on this or can suggest me any other better alternatives I have.

regards,
songeb

nexusone
02-01-2002, 08:00 AM
There are lot's of good tutor sites for OpenGL out there and sites for writing Windows programs using the Windows API.

cornflakezone (http://www.cornflakezone.com/)
nehe (http://nehe.gamedev.net/)


If you are wanting to use the Windows API for your menu and ICON control. Then it is best you start learning how to create that part of your program. Once you understand how to setup a Windows GUI. Then you move to creating a OpenGL window in which to draw on.

The OpenGL window will be treated like a document, in your Windows API.

If you do not want to be stuck with a program that will only run on a windows based system. You may want to use GLUT for creating your window GUI, since GLUT is supported on Linux and Mac.

[This message has been edited by nexusone (edited 02-01-2002).]

[This message has been edited by nexusone (edited 02-01-2002).]

[This message has been edited by nexusone (edited 02-01-2002).]

[This message has been edited by nexusone (edited 02-01-2002).]

J P
02-01-2002, 11:53 AM
Try my MFC & OpenGL website

http://pws.prserv.net/mfcogl/

or
http://www.mfcogl.com/

endo
02-01-2002, 12:05 PM
I did this a while back, and J P's website is the one I found most useful.

http://pws.prserv.net/mfcogl/

02-01-2002, 04:36 PM
http://p-squared.com/Display3DS.zip

songeb
02-01-2002, 04:46 PM
Ok thanks to all, I found the website very useful.. I'll try to look into deeper of it.. thanks

regards,