NSOpenGLView |
Mac OS X 10.0 |
This subclass of NSView allows applications to
render calls to the OpenGL API into a Cocoa view hierarchy. Instances
of this class maintain NSOpenGLPixelFormat and
NSOpenGLContext objects to control many OpenGL
rendering options and parameters.
@interface NSOpenGLView : NSView
|
// Initializers |
- (id)initWithFrame:(NSRect)frameRect pixelFormat:(NSOpenGLPixelFormat*)format;
|
// Accessor Methods |
- (void)setPixelFormat:(NSOpenGLPixelFormat*)pixelFormat;
|
- (NSOpenGLPixelFormat*)pixelFormat;
|
- (void)setOpenGLContext:(NSOpenGLContext*)context;
|
- (NSOpenGLContext*)openGLContext;
|
// Class Methods |
+ (NSOpenGLPixelFormat*)defaultPixelFormat;
|
// Instance Methods |
- (void)clearGLContext;
|
- (void)reshape;
|
- (void)update;
|