PDA

View Full Version : OpenGL in Win32(w/o GLUT)



Dire_Avenger
02-12-2001, 07:39 AM
Okay, okay I KNOW this question gets asked about every 2 minutes, but just exactly HOW do you create a Win32 window for OpenGL without using GLUT?
I've read through the _ENTIRE_ Win32 SDK topic on it, pulled out all the examples(get a DC, choose a PixelFormat, set PixelFormat, Choose Rendering context, make rendering context current/not current), set them in the correct order, and THAT dosen't work! I'm _DESPERATE_!
a full chunk of working code would be nice, since then I can see something that's easy to understand...Damn you, Microsoft...Damn you... http://www.opengl.org/discussion_boards/ubb/smile.gif

-TiA-

Michael Steinberg
02-12-2001, 08:09 AM
Look over at nehe.gamedev.net
Hope they're online though

Dire_Avenger
02-13-2001, 05:59 AM
Nope, can't access it... could be the college firewall, though: it dosen't seem to like the word 'game' for some reason. Can't imagine why http://www.opengl.org/discussion_boards/ubb/smile.gif

Michael Steinberg
02-13-2001, 06:18 AM
It (the url) has no www in front of it (http://nehe.gamedev.net). If it's the firewall, I would ask the administrator to allow that page, since it's very interresting. The site is up, just tested it.

DFrey
02-13-2001, 06:20 AM
Try http://216.139.199.201/hosted/nehe/
If your browser, and the firewall don't do a reverse lookup, that might work.

Dire_Avenger
02-13-2001, 07:36 AM
Nope, already tried the IP address, and I know it hasn't got a www.
Anyway all I wanted was a bit of code...

But, if anyone's got his first(smallest) tutorial, e-mail it to me http://www.opengl.org/discussion_boards/ubb/smile.gif http://www.opengl.org/discussion_boards/ubb/smile.gif http://www.opengl.org/discussion_boards/ubb/smile.gif

mailto:I_Am_Nick_Thomas@talk21.com

Oh, & the 'admin' staff here have _no_ control over the website: It's all handled off-site, thru don.ac.uk http://www.opengl.org/discussion_boards/ubb/frown.gif
Thanks for all the help though.

PS>> Anyone know of an alternate site(maybe a mirror: minus the 'game')???

Elixer
02-13-2001, 07:54 AM
There are LOTS of sites that have win32 example code on it. Just do a search on google, you will find plenty of hits.

Also, I think the FAQ has info on this, so you may want to check it out also. (FAQ link is on the main page of this site)

Dire_Avenger
02-14-2001, 07:32 AM
AHA!!! Thanks, everyone: got some(hopefuly) working examples, now...

Voytec
02-15-2001, 10:20 AM
If you use MFC, you might be interested in some simple classes that well integrate with MFC: http://shiptech.tuniv.szczecin.pl/~weyna/OpenGL

[This message has been edited by Voytec (edited 02-15-2001).]

Dire_Avenger
02-16-2001, 06:35 AM
MFC? Microsoft Foundation Class, right?
Never used it, & don't intend to http://www.opengl.org/discussion_boards/ubb/smile.gif