Add low-level CGL context management for macOS.

This allows rendering from non-main threads as the context is not tied to a Cocoa window.

Fixes #742
Fixes #798

PiperOrigin-RevId: 523144359
Change-Id: I98432debdd034814c313eda94e38c248c3c1f76c
This commit is contained in:
Saran Tunyasuvunakool
2023-04-10 10:09:06 -07:00
committed by Copybara-Service
parent b536e46cc0
commit 6d63e046fd
4 changed files with 223 additions and 0 deletions
+7
View File
@@ -20,6 +20,13 @@ General
equivalent body inertias with ellipsoids instead of the default boxes.
- Added documentation for :ref:`engine plugins<exPlugin>`.
Python bindings
^^^^^^^^^^^^^^^
- Offscreen rendering on macOS is no longer restricted to the main thread. This is achieved by using the low-level
Core OpenGL (CGL) API to create the OpenGL context, rather than going via GLFW which relies on Cocoa's NSOpenGL.
The resulting context is not tied to a Cocoa window, and is therefore not tied to the main thread.
Bug fixes
^^^^^^^^^