Deprecated NSOpenGLContext Methods
A method identified as deprecated has been superseded and may become unsupported in the future.
Deprecated in OS X 10.8
copyAttributesFromContext:withMask:
Copies selected groups of state variables to the receiver. (Deprecated in OS X 10.8.)
Parameters
- context
The OpenGL graphics context containing the desired state variables.
- mask
A bitfield containing a bitwise OR of the same symbolic names that are passed to the OpenGL call
glPushAttrib. The single symbolic constantGL_ALL_ATTRIB_BITScan be used to copy the maximum possible portion of the rendering state.
Discussion
Not all values for OpenGL states can be copied. For example, the pixel pack and unpack state, render mode state, and select and feedback state are not copied. The state that can be copied is exactly the state that is manipulated by the OpenGL call glPushAttrib.
Availability
- Deprecated in OS X 10.8.
Declared In
NSOpenGL.h© 2012 Apple Inc. All Rights Reserved. (Last updated: 2012-07-23)