NSOpen object initialized with the specified pixel format information.
- macOS 10.0–10.14Deprecated
The pixel format to request for the OpenGL graphics context.
Another OpenGL graphics context whose texture namespace and display lists you want to share with the receiver. If you do not want to share those features with another graphics context, you may pass
nilfor this parameter.
NSOpen object initialized with the specified parameters, or
nil if the object could not be created.
If the parameters contain invalid information, this method returns
nil. This may happen if one of the following situations occurs:
nilor contains an invalid pixel format.
shareparameter is not
niland contains an invalid context.
shareparameter contains a context with a pixel format that is incompatible with the one in
Pixel formats are incompatible if they use different renderers; this can happen if, for example, one format required an accumulation buffer that could only be provided by the software renderer, and the other format did not.