aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/mac_gl.m
AgeCommit message (Collapse)AuthorFilesLines
2020-10-04Add puglGetViewHint()David Robillard1-3/+27
This allows retrieving properties of the view that may be needed, such as the actual bit depth (which may vary from the suggested depth provided as a hint).
2020-07-05Move stub backend function implementations to a detail headerDavid Robillard1-1/+1
2020-07-02Mac: Declare instance variables in implementationDavid Robillard1-4/+3
Declaring instance variables in interfaces is deprecated, according to Wobjc-interface-vars (Apple clang version 11.0.0).
2020-05-16Use email address in copyright headersDavid Robillard1-1/+1
Not really sure why I used a web link here (maybe because it's more stable), but this is more conventional.
2020-05-16Fix file documentationDavid Robillard1-1/+2
2020-04-08Mac: Use high-resolution backing surfacesDavid Robillard1-3/+3
2020-03-31Mac: Fix various warningsDavid Robillard1-8/+8
2020-03-15Remove backend resize methodDavid Robillard1-1/+0
2020-03-15Mac: Remove unnecessary resize handler in GL backendDavid Robillard1-12/+2
2020-03-01Cleanup: Use a consistent style for all backend definitionsDavid Robillard1-9/+7
2020-02-18Pass expose event to backend enter and leave functionsDavid Robillard1-3/+3
This is needed for clipping. Unfortunately, the puglEnterContext() and puglLeaveContext() API was not suitable for this, but this shouldn't matter in user code because it is only used for setup, and is slated for removal anyway. Instead, just call the backend functions directly in the implementation.
2019-12-09Mac: Fix missing NSWindowStyleMask type on 10.11Hanspeter Portner1-3/+1
2019-11-21Rename "backend" headersDavid Robillard1-2/+2
Working on Vulkan clarified what has always been slightly smelly about the design and organization here: not everything that is API specific is really in a "backend" (a PuglBackend). The concrete example is puglGetProcAddress(), which only makes sense for GL and is actually implemented in the "backend" files. Arguably puglGetContext() is also such a thing. So, rename the headers so they can be the place where API-specific things go in general, which happens to include a backend most of the time. The stub is a bit of an exception to this, but whatever. The includes look tidier this way. In place of the old headers are compatibility stubs that just emit a warning and include the new version, which will be maintained for a while.
2019-11-20Mac: Move puglGetProcAddress() to mac_gl.mDavid Robillard1-0/+17
2019-11-03Add stub implementations of backend functionsDavid Robillard1-14/+3
Towards having actual trivial backends, but in general allows backends to not declare functions they don't care about which is nice and already a net reduction of actual code.
2019-09-07Clean up error handlingDavid Robillard1-12/+12
2019-09-03Add functions to get and set view size and positionDavid Robillard1-10/+4
2019-09-03Simplify hints implementationDavid Robillard1-10/+12
2019-09-03Mac: Dispatch expose events from drawing viewMichael Fisher1-0/+6
2019-07-29Mac: Separate backends from platform implementationDavid Robillard1-0/+184