O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

NSOpenGLPixelFormat — Mac OS X 10.0

Synopsis

This class is used by NSOpenGLContext and NSOpenGLView to specify the attributes of an OpenGL pixel format, such as buffer size and type and rendering options.

image with no caption

@interface NSOpenGLPixelFormat : NSObject <NSCoding>
                                  // Initializers
   - (id)initWithAttributes:(NSOpenGLPixelFormatAttribute*)attribs;
   - (id)initWithData:(NSData*)attribs;
                                  // Accessor Methods
   - (void)setAttributes:(NSData*)attribs;
   - (NSData*)attributes;
                                  // Instance Methods
   - (void)getValues:(long*)vals 
                                 forAttribute:(NSOpenGLPixelFormatAttribute)attrib 
                                 forVirtualScreen:(int)screen;
   - (int)numberOfVirtualScreens;
                                  // Methods Implementing NSCoding
   - (void)encodeWithCoder:(NSCoder *)aCoder;
   - (id)initWithCoder:(NSCoder *)aDecoder;

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required