Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

win32 console vs win32??

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
hey,
ive started playing around with opengl\glut, im wondering why are glut apps win32 console apps? shouldnt they be win32? someone please explain that to me.
 
A lot of OpenGL code gets ported from Unix, so that's why most sample projects assume a Win32 Console project type. If you want a true Win32 GUI application, you'll need a bunch more code to get a window up on the screen. If you're new to Windows development, take a look at Charles Petzold's book ("Programming Windows" ISBN:157231995X). He covers how to get started using C. You can also write Windows applications using MFC (in C++), but I don't know how to call OpenGL from within C++ without using some kind of wrapper library. Maybe someone else here has done that.

You might take a look at the MSDN library to see if there's some sample code availble from Microsoft. I get the impression, however, that DirectX is more in favor in Redmond. :)

Chip H.
 
thanx, that helps alot. since i posted that, ive been able to get a window on the screen using glut, without any console window. it still call's int main() instead of int WINAPI(). but anywayz, thanx alot, i appreciate u explaining that to me.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top