Returns an NSOpenGLPixelFormat object initialized with specified pixel format attributes.
Original signature is '- (id)initWithAttributes:(const NSOpenGLPixelFormatAttribute *)attribs'
Available in Mac OS X v10.0 and later.
Declaration Syntax
Parameters
- attribs (IntPtr)
- A 0-terminated array containing Boolean and integer attribute constants. The presence of a Boolean attribute implies a value of YES while its absence implies a value of NO. Integer constants must be followed by the desired value. For a listing of attribute constants, see the table in “Constants.”
Return Value
An initialized NSOpenGLPixelFormat object whose attributes match the desired attributes as close as possible, or nil if an object with the desired attributes could not be initialized.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)