|
||||||||||||||||||
Add Forum to Favorites | Send Topic To a Friend | View Forum FAQ | Track this topic |
Last Thread Next Thread ![]() |
| Initializing OpenGL with Win32 without GLUT, WGL, etc. |
|
![]() CDProp Member since: 3/7/2007 From: Draper, UT, United States |
||||
|
|
||||
| A lot of tutorials don't seem to touch on this, but if I wanted to create my own window manually using Win32, is there a way to init OpenGL for use with it? |
||||
|
||||
![]() A-E Member since: 4/14/2007 From: Kaunas, Lithuania |
||||
|
|
||||
| No, as far as I know. OpenGL is OS-independent and you need to bind your rendering context to OpenGL in some way, which is WGL in case of Win32. WGL is the lowest-level access you can get, and higher-level libraries (like GLUT) use it under the hood. |
||||
|
||||
![]() acamer01 Member since: 4/15/2007 From: Baldwin, NY, United States |
||||
|
|
||||
| If you want to use win32 for OpenGL you can check out the Nehe tutorials at http://nehe.gamedev.net/. Also if your interested in setting up OpenGL ver 3 and up you can check out dhpoware at http://www.dhpoware.com/index.html. There are a couple of books you can look at also such as Beginning OpenGL Game Programming editions one and two (third edition uses SDL I believe). But if you want to learn win32 and eventualy win64 in more detail though, I suggest you take a look at Programming Windows Fifth Edition, and Windows System Programming Third Edition. |
||||
|
||||
![]() Katie Member since: 6/15/2006 From: Cambridge, United Kingdom |
||||
|
|
||||
| http://www.amazon.com/OpenGL-Programming-Windows-95-NT/dp/0201407094 "OpenGL Programming for Windows 95 and Windows NT" Yeah, I know we're on Vista now, but the Win32 bits are the same. It'll get you through the basics of opening a window, faffing about with device contexts, pumping and dispatching messages and so on. The other alternative would be to look at the OpenGL Superbible, which has 3 chapters on getting basic stuff up and running for each of Linux/UNIX, Windows and Mac. If you ever plan on cross-platform stuff, it's worth reading the other chapters just so you don't make architectural decisions which will make porting harder. The rest of the book is just so damn useful to have lying around that it ought to be on your christmas list anyway. |
||||
|
||||
All times are ET (US)![]() |
Last Thread Next Thread ![]() |
|