March 2013
Intermediate to advanced
984 pages
26h 18m
English
Like the other binding APIs, CGL has routines for controlling OpenGL’s interaction with the windowing system, including managing OpenGL contexts.
After selecting a pixel format, create an OpenGL context by calling CGLCreateContext() using the returned CGLPixelFormatObj object. Once the context is created, you need to call CGLSetCurrentContext() to make the context current and available for OpenGL rendering.