OpenGL

These functions are used to set and get global OpenGL options, as well as to obtain the version number of the installed OpenGL libraries.

NSOpenGLGetOption

void NSOpenGLGetOption(NSOpenGLGlobalOption pname, long *param)

NSOpenGLGetVersion

void NSOpenGLGetVersion(long *major, long *minor)

NSOpenGLSetOption

void NSOpenGLSetOption(NSOpenGLGlobalOption pname, long param)

Get Cocoa in a Nutshell 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.