getValues(_:forAttribute:forVirtualScreen:)
Gets the value for the specified pixel format attribute.
Declaration
func getValues(_ vals: UnsafeMutablePointer<GLint>, forAttribute attrib: NSOpenGLPixelFormatAttribute, forVirtualScreen screen: GLint)Parameters
- vals:
On input, a pointer to a
longvariable. On output, the variable contains the value of the requested attribute. - attrib:
The requested attribute. For a list of attribute constants, see the table in Constants.
- screen:
The screen from which you want to retrieve the attribute. This parameter must be a value between 0 and the number of virtual screens (Numberofvirtualscreens) minus 1.
Discussion
Because the value for an attribute may be different on each virtual screen, the virtual screen must be specified along with the attribute.