Skip to main content
gamedev.net
🔒 Locked

Initializing a program

Started by Code advance 1 reply 450+ views
Original Post
Code advance
Code advance
Does someone know how to initiate a program in OpenGL? I have an idea but i don't really know how. Also i know i need some header files to work in windows. As i only have them for dos. Could someone tell me where to get them?
conman
conman
If you want to render OpenGL using the windows API you create a window, and then use WGL calls to set up a rendering context connected to the device context of your window.

Or you use a library like glut or SDL, which do the window creation for you.

But there are many tutorials in the web how to do that specifically - use google!
There you will also learn all about the required OpenGL libraries and their header files.

Constantin
Fruny
Fruny
For GLUT, use that version instead.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.