DekGenius.com
[ Team LiB ] Previous Section Next Section

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.

figs/cocn_1560.gif

@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;

    [ Team LiB ] Previous Section Next Section