MonobjcMonobjc Documented Class Library
NSOpenGLContext Constructor (format, share)
NamespacesMonobjc.AppKitNSOpenGLContextNSOpenGLContext(NSOpenGLPixelFormat, NSOpenGLContext)

Returns an NSOpenGLContext object initialized with the specified pixel format information.

Original signature is '- (id)initWithFormat:(NSOpenGLPixelFormat *)format shareContext:(NSOpenGLContext *)share'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public NSOpenGLContext(
	NSOpenGLPixelFormat format,
	NSOpenGLContext share
)
Public Sub New ( _
	format As NSOpenGLPixelFormat, _
	share As NSOpenGLContext _
)
public:
NSOpenGLContext(
	NSOpenGLPixelFormat^ format, 
	NSOpenGLContext^ share
)
Parameters
format (NSOpenGLPixelFormat)
The pixel format to request for the OpenGL graphics context. Following successful initialization, the value you pass in for this parameter is no longer needed and can be deallocated.
share (NSOpenGLContext)
Another OpenGL graphics context whose texture namespace and display lists you want to share with the receiver. If you do not want to share those features with another graphics context, you may pass nil for this parameter.
Return Value
An NSOpenGLContext object initialized with the specified parameters, or nil if the object could not be created.
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)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)