Instance Method

getValues:forAttribute:forVirtualScreen:

Gets the value for the specified pixel format attribute.

Declaration

- (void)getValues:(GLint *)vals forAttribute:(NSOpenGLPixelFormatAttribute)attrib forVirtualScreen:(GLint)screen;

Parameters

vals

On input, a pointer to a long variable. 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.

See Also

Managing the Pixel Format

CGLPixelFormatObj

Returns the low-level, platform-specific Core OpenGL (CGL) pixel format object represented by the receiver.

Deprecated
numberOfVirtualScreens

Returns the number of virtual screens associated with the receiver.

Deprecated