March 2013
Intermediate to advanced
984 pages
26h 18m
English
Begin by adding an OpenGL view (through an instance of NSOpenGLView()) to your application window. Using an NSOpenGLView() takes care of managing the OpenGL context and the associated pixel formats; otherwise, you will need to specify the pixel format for the application’s OpenGL window by allocating an NSOpenGLPixelFormat() class and using the returned class instance when creating an OpenGL context with NSOpenGLContext().
It is also possible to add an NSOpenGLView() to your application using the Interface Builder, but you will need to manually create the associated pixel format and context objects programmatically.
Once your view is created, you can proceed with OpenGL rendering.
As compared to the GLX ...