A subclass of CAOpen
that is suitable for rendering OpenGL into layers.
SDK
- macOS 10.6–10.14Deprecated
Framework
- App
Kit
Declaration
class NSOpenGLLayer : CAOpen GLLayer
Overview
Unlike CAOpen
, NSOpen
uses AppKit types.
A subclass of CAOpen
that is suitable for rendering OpenGL into layers.
SDK
Framework
class NSOpenGLLayer : CAOpen GLLayer
Unlike CAOpen
, NSOpen
uses AppKit types.
func can Draw(in: NSOpen GLContext, pixel Format: NSOpen GLPixel Format, for Layer Time: CFTime Interval, display Time: Unsafe Pointer<CVTime Stamp>) -> Bool
Invoked to ask the layer whether it can (or should) draw.
func draw(in: NSOpen GLContext, pixel Format: NSOpen GLPixel Format, for Layer Time: CFTime Interval, display Time: Unsafe Pointer<CVTime Stamp>)
Draws the OpenGL content for the specified time.
var open GLPixel Format: NSOpen GLPixel Format?
Provides access to the layer's associated NSOpenGLPixelFormat.
func open GLPixel Format(for Display Mask: UInt32) -> NSOpen GLPixel Format
Returns the OpenGL pixel format suitable for the specified displays.
var open GLContext: NSOpen GLContext?
The layer’s NSOpenGLContext.
func open GLContext(for: NSOpen GLPixel Format) -> NSOpen GLContext
Returns the OpenGL context to use for the requested pixel format.
var view: NSView?
Returns the view associated with the layer.
class NSOpen GLContext
An object that represents an OpenGL graphics context, into which all OpenGL calls are rendered.
class NSOpen GLPixel Format
An object that specifies the types of buffers and other attributes of the NSOpen
.
enum NSOpen GLGlobal Option
These constants are option names for NSOpen
and NSOpen
.