Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page > Hide TOC

Hinting for a Specific Anti-Aliasing Technique

In Mac OS X v10.4 and later, when you set up your renderer and buffer attributes for full scene antialiasing, you can specify a hint to prefer one anti-aliasing technique over the others. If the underlying renderer does not have sufficient resources to support what you request, OpenGL ignores the hint. If you do not supply the appropriate buffer attributes when you create a pixel format object, then the hint does nothing. Table 10-1 lists the hinting constants available for the NSOpenGLPixelFormat class, AGL, and CGL.

Table 10-1  Anti-aliasing hints available starting in Mac OS X v10.4

Multisampling

Supersampling

Alpha blending

NSOpenGLPFAMultisample

NSOpenGLPFASupersample

NSOpenGLPFASampleAlpha

AGL_MULTISAMPLE

AGL_SUPERSAMPLE

AGL_SAMPLE_ALPHA

kCGLPFAMultisample

kCGLPFASupersample

kCGLPFASampleAlpha



< Previous PageNext Page > Hide TOC


Last updated: 2008-06-09




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice