Programming OpenGL on macOS: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m Webmaster moved page Programming OpenGL on Mac OS X to Programming OpenGL on macOS: Apple change their operating system from Mac OS X to macOS |
||
(One intermediate revision by one other user not shown) | |||
Line 5: | Line 5: | ||
== Cocoa/NSGL == | == Cocoa/NSGL == | ||
Cocoa is the modern API with Objective-C bindings. Mac OS X 10.5 Leopard ships 64 bit versions of Cocoa. | Cocoa is the modern API with Objective-C bindings. Mac OS X 10.5 Leopard and later ships 64 bit versions of Cocoa. Using OpenGL in Cocoa requires you to include the frameworks "Cocoa" and "OpenGL" in your project. | ||
== OpenGL versions == | |||
For a long time, MacOS X supported OpenGL only in version 3.2 and below. MacOS X 10.9, "Mavericks", added support for OpenGL 3.3, 4.0 and 4.1. |
Latest revision as of 19:24, 14 April 2017
AGL/Carbon
AGL is the old Carbon-based API with C bindings. The Carbon part needed for windowing and event handling are not thread-safe. There is no 64 bit version of this API.
Cocoa/NSGL
Cocoa is the modern API with Objective-C bindings. Mac OS X 10.5 Leopard and later ships 64 bit versions of Cocoa. Using OpenGL in Cocoa requires you to include the frameworks "Cocoa" and "OpenGL" in your project.
OpenGL versions
For a long time, MacOS X supported OpenGL only in version 3.2 and below. MacOS X 10.9, "Mavericks", added support for OpenGL 3.3, 4.0 and 4.1.