Initialization

Usually, renderers are selected and managed automatically for your by Mac OS X; however, if you need or want to explicitly control the renderer for your application, do the following: first, determine the available renderers by calling CGLQueryRendererInfo(), which returns an opaque data structure—CGLRendererInfoObj—that you need to use to query the characteristics of each renderer. Properties of a renderer can be determined by calling CGLDescribeRenderer(). Once you’ve completed all of your system queries, you need to release the returned CGLRendererInfoObj by calling CGLDestroyRendererInfo().

Once you’ve selected the appropriate renderer, you next specify the buffer attributes required for your application. Specify the attributes ...

Get OpenGL Programming Guide: The Official Guide to Learning OpenGL, Version 4.3, Eighth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.