Initialize window code Mac OS X
- by Jarle
I'm currently reading "the red book" for learning OpenGL properly, and in one of the first examples, the author writes a line that says "InitializeAWindowPlease();" as a place holder for the code that will make a window to draw the OpenGL content in.
Since I'm using Xcode for my programing, I know that I "get" a window to work with automatically (and that I have to make my own OpenGL view in interfacebuilder).
How can I make this with pure code?
I'm trying to learn programming, and I'm not to happy about taking "shortcuts" all the time.
How can I make a window to draw my openGL stuff in?
With Objective-C and C code I would love to see it. My goal is that I can make it without opening interface builder at all:)