Initialize window code Mac OS X

Posted by Jarle on Stack Overflow See other posts from Stack Overflow or by Jarle
Published on 2009-10-14T15:58:14Z Indexed on 2010/05/30 12:02 UTC
Read the original article Hit count: 305

Filed under:
|
|
|
|

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:)

© Stack Overflow or respective owner

Related posts about c

    Related posts about objective-c