Returns an NSOpenGLView object initialized with the specified frame rectangle and pixel format.
Original signature is '- (id)initWithFrame:(NSRect)frameRect pixelFormat:(NSOpenGLPixelFormat *)format'
Available in Mac OS X v10.0 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public NSOpenGLView( NSRect frameRect, NSOpenGLPixelFormat format )
Public Sub New ( _ frameRect As NSRect, _ format As NSOpenGLPixelFormat _ )
public: NSOpenGLView( NSRect frameRect, NSOpenGLPixelFormat^ format )
Parameters
- frameRect (NSRect)
- The frame rectangle for the view, specified in the coordinate system of its parent view.
- format (NSOpenGLPixelFormat)
- The pixel format to use when creating the view's NSOpenGLContext object.
Return Value
An initialized NSOpenGLView object, or nil if the object could not be initialized.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)