quick simple OpenGL question...

Started by
7 comments, last by dirkduck 22 years, 9 months ago
Well, im pretty new to C++ in general, and im learning quite a bit. IN the future, I plan to get into OpenGL, instead of DirectX. So, since now I only can do console C++ programming, OpenGL doesn''t work in console mode does it? I know GLUT does, but not OpenGL right? If so, where can I find some tutorials about basic Windows based programming? thanks a bunch.
http://www.labino.net
Advertisement
Most people go to nehe''s site.

nehe.gamedev.net



Mike
"Unintentional death of one civilian by the US is a tragedy; intentional slaughter of a million by Saddam - a statistic." - Unknown
Don''t forget that "DirectX" refers to all of the Direct* APIs: DirectDraw, Direct3D, DirectSound, etc. Sorry to be so nitpicky, but sometimes this causes some serious confusion.

You probably already know this, but GLUT is a framework to make an OpenGL app without worrying about platform-specific issues such as window creation and input. That''s all it does. To do any drawing, you use OpenGL commands.

A console app can use OpenGL. If you use GLUT, you''re technically creating a console app. This is because GLUT does all of the window stuff itself, so making your GLUT app a windowed app might conflict with its use. Console apps can''t draw graphics in the console itself, so they create a separate window. Of course, you don''t need GLUT to create a window and all of that, but it''s lots easier. =)

So...tutorials on basic Windows programming, eh? Well, unfortunately, there isn''t lots of good info out there on that sort of thing anymore; I assume you''re talking about using the raw Win32 API as most game programmers do, as opposed to MFC. Most stuff out there in on MFC. There''s one site on the net with a few tutorials, but I forget the address. Check around in these forums for the link. But you won''t get very far with that, and there''s not much else, so you''ll just have to spend some time with it.
well, thanks for the help everyone, but what exactly is MFC? thanks
http://www.labino.net
MFC is Microsoft''s poorly made OO wrapper for the Win32 API. Don''t use it for games. See winprog.org for some Win32 tutorials. It doesn''t cover everything, but it''ll get you started.

You can also use SDL (as a more game oriented alternative to GLUT) to do the platform specific Window setup and stuff.

[Resist Windows XP''s Invasive Production Activation Technology!]
Once upon a time, Satan wanted to program something and see what this computer hype was about. When he was finished, he called it MFC and released it to the world under his human-alias, Bill Gates.

MFC makes windows programming easier by adding an extra layer over the real API but it gives you less control and isnt as flexable. Basically, for games its not an option.

(http://www.ironfroggy.com/)(http://www.ironfroggy.com/pinch)
A good Win32 tutorial can be found at http://www.winprog.org
Well it depends on the type of game. You are not going to make Quake 4 using MFC but you could certainly make a cool boardgame or turn-based strategy game using MFC.
hey check my website and try my first two opengl tutorials.
they are both about using the WinAPI, the first one is VERY basic. I will make others pretty soon too if some people out there actually think they are worth it =)



www.gamedeveloper.f2s.com
www.gamedeveloper.f2s.com

This topic is closed to new replies.

Advertisement