May 2003
Intermediate to advanced
566 pages
27h 29m
English
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;
|
Read now
Unlock full access