2
// Auto-generated from generator.cs, do not edit
4
// We keep references to objects, so warning 414 is expected
6
#pragma warning disable 414
12
using System.Runtime.InteropServices;
14
using MonoMac.CoreFoundation;
16
using MonoMac.Foundation;
18
using MonoMac.ObjCRuntime;
20
using MonoMac.CoreGraphics;
22
using MonoMac.CoreAnimation;
24
using MonoMac.CoreLocation;
28
namespace MonoMac.AppKit {
29
[Register("NSOpenGLContext")]
30
public partial class NSOpenGLContext : NSObject {
31
static IntPtr selCGLContextObj = Selector.GetHandle ("CGLContextObj");
33
static IntPtr selPixelBuffer = Selector.GetHandle ("pixelBuffer");
34
static IntPtr selPixelBufferCubeMapFace = Selector.GetHandle ("pixelBufferCubeMapFace");
35
static IntPtr selPixelBufferMipMapLevel = Selector.GetHandle ("pixelBufferMipMapLevel");
36
static IntPtr selView = Selector.GetHandle ("view");
37
static IntPtr selSetView = Selector.GetHandle ("setView:");
38
static IntPtr selCurrentVirtualScreen = Selector.GetHandle ("currentVirtualScreen");
39
static IntPtr selSetCurrentVirtualScreen = Selector.GetHandle ("setCurrentVirtualScreen:");
40
static IntPtr selInitWithFormatShareContext = Selector.GetHandle ("initWithFormat:shareContext:");
41
static IntPtr selSetFullScreen = Selector.GetHandle ("setFullScreen");
42
static IntPtr selSetOffScreenWidthHeightRowbytes = Selector.GetHandle ("setOffScreen:width:height:rowbytes:");
43
static IntPtr selClearDrawable = Selector.GetHandle ("clearDrawable");
44
static IntPtr selUpdate = Selector.GetHandle ("update");
45
static IntPtr selFlushBuffer = Selector.GetHandle ("flushBuffer");
46
static IntPtr selMakeCurrentContext = Selector.GetHandle ("makeCurrentContext");
47
static IntPtr selClearCurrentContext = Selector.GetHandle ("clearCurrentContext");
48
static IntPtr selCurrentContext = Selector.GetHandle ("currentContext");
49
static IntPtr selCopyAttributesFromContextWithMask = Selector.GetHandle ("copyAttributesFromContext:withMask:");
50
static IntPtr selSetValuesForParameter = Selector.GetHandle ("setValues:forParameter:");
51
static IntPtr selGetValuesForParameter = Selector.GetHandle ("getValues:forParameter:");
52
static IntPtr selCreateTextureFromViewInternalFormat = Selector.GetHandle ("createTexture:fromView:internalFormat:");
53
static IntPtr selSetPixelBufferCubeMapFaceMipMapLevelCurrentVirtualScreen = Selector.GetHandle ("setPixelBuffer:cubeMapFace:mipMapLevel:currentVirtualScreen:");
54
static IntPtr selSetTextureImageToPixelBufferColorBuffer = Selector.GetHandle ("setTextureImageToPixelBuffer:colorBuffer:");
56
static IntPtr class_ptr = Class.GetHandle ("NSOpenGLContext");
58
public override IntPtr ClassHandle { get { return class_ptr; } }
61
public NSOpenGLContext () : base (NSObjectFlag.Empty)
63
if (IsDirectBinding) {
64
Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.Init);
66
Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.Init);
70
[Export ("initWithCoder:")]
71
public NSOpenGLContext (NSCoder coder) : base (NSObjectFlag.Empty)
73
if (IsDirectBinding) {
74
Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.InitWithCoder, coder.Handle);
76
Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.InitWithCoder, coder.Handle);
80
public NSOpenGLContext (NSObjectFlag t) : base (t) {}
82
public NSOpenGLContext (IntPtr handle) : base (handle) {}
84
[Export ("initWithFormat:shareContext:")]
85
public NSOpenGLContext (NSOpenGLPixelFormat format, NSOpenGLContext shareContext) : base (NSObjectFlag.Empty)
88
throw new ArgumentNullException ("format");
89
if (shareContext == null)
90
throw new ArgumentNullException ("shareContext");
91
if (IsDirectBinding) {
92
Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr (this.Handle, selInitWithFormatShareContext, format.Handle, shareContext.Handle);
94
Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, selInitWithFormatShareContext, format.Handle, shareContext.Handle);
98
[Export ("setFullScreen")]
99
public virtual void SetFullScreen ()
101
if (IsDirectBinding) {
102
MonoMac.ObjCRuntime.Messaging.void_objc_msgSend (this.Handle, selSetFullScreen);
104
MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper (this.SuperHandle, selSetFullScreen);
108
[Export ("setOffScreen:width:height:rowbytes:")]
109
public virtual void SetOffScreen (System.IntPtr baseaddr, int width, int height, int rowbytes)
111
if (IsDirectBinding) {
112
MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_int_int_int (this.Handle, selSetOffScreenWidthHeightRowbytes, baseaddr, width, height, rowbytes);
114
MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_int_int_int (this.SuperHandle, selSetOffScreenWidthHeightRowbytes, baseaddr, width, height, rowbytes);
118
[Export ("clearDrawable")]
119
public virtual void ClearDrawable ()
121
if (IsDirectBinding) {
122
MonoMac.ObjCRuntime.Messaging.void_objc_msgSend (this.Handle, selClearDrawable);
124
MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper (this.SuperHandle, selClearDrawable);
129
public virtual void Update ()
131
if (IsDirectBinding) {
132
MonoMac.ObjCRuntime.Messaging.void_objc_msgSend (this.Handle, selUpdate);
134
MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper (this.SuperHandle, selUpdate);
138
[Export ("flushBuffer")]
139
public virtual void FlushBuffer ()
141
if (IsDirectBinding) {
142
MonoMac.ObjCRuntime.Messaging.void_objc_msgSend (this.Handle, selFlushBuffer);
144
MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper (this.SuperHandle, selFlushBuffer);
148
[Export ("makeCurrentContext")]
149
public virtual void MakeCurrentContext ()
151
if (IsDirectBinding) {
152
MonoMac.ObjCRuntime.Messaging.void_objc_msgSend (this.Handle, selMakeCurrentContext);
154
MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper (this.SuperHandle, selMakeCurrentContext);
158
[Export ("clearCurrentContext")]
159
public static void ClearCurrentContext ()
161
MonoMac.ObjCRuntime.Messaging.void_objc_msgSend (class_ptr, selClearCurrentContext);
164
[Export ("currentContext")]
165
public static NSOpenGLContext CurrentContext ()
167
return (NSOpenGLContext) Runtime.GetNSObject (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selCurrentContext));
170
[Export ("copyAttributesFromContext:withMask:")]
171
public virtual void CopyAttributes (NSOpenGLContext context, System.UInt32 mask)
174
throw new ArgumentNullException ("context");
175
if (IsDirectBinding) {
176
MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_UInt32 (this.Handle, selCopyAttributesFromContextWithMask, context.Handle, mask);
178
MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_UInt32 (this.SuperHandle, selCopyAttributesFromContextWithMask, context.Handle, mask);
182
[Export ("setValues:forParameter:")]
183
public virtual void SetValues (System.IntPtr vals, NSOpenGLContextParameter param)
185
if (IsDirectBinding) {
186
MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_int (this.Handle, selSetValuesForParameter, vals, (int)param);
188
MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_int (this.SuperHandle, selSetValuesForParameter, vals, (int)param);
192
[Export ("getValues:forParameter:")]
193
public virtual void GetValues (System.IntPtr vals, NSOpenGLContextParameter param)
195
if (IsDirectBinding) {
196
MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_int (this.Handle, selGetValuesForParameter, vals, (int)param);
198
MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_int (this.SuperHandle, selGetValuesForParameter, vals, (int)param);
202
[Export ("createTexture:fromView:internalFormat:")]
203
public virtual void CreateTexture (int targetIdentifier, NSView view, int format)
206
throw new ArgumentNullException ("view");
207
if (IsDirectBinding) {
208
MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_int_IntPtr_int (this.Handle, selCreateTextureFromViewInternalFormat, targetIdentifier, view.Handle, format);
210
MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_int_IntPtr_int (this.SuperHandle, selCreateTextureFromViewInternalFormat, targetIdentifier, view.Handle, format);
214
[Export ("setPixelBuffer:cubeMapFace:mipMapLevel:currentVirtualScreen:")]
215
public virtual void SetPixelBuffer (NSOpenGLPixelBuffer pixelBuffer, NSGLTextureCubeMap face, int level, int screen)
217
if (pixelBuffer == null)
218
throw new ArgumentNullException ("pixelBuffer");
219
if (IsDirectBinding) {
220
MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_int_int_int (this.Handle, selSetPixelBufferCubeMapFaceMipMapLevelCurrentVirtualScreen, pixelBuffer.Handle, (int)face, level, screen);
222
MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_int_int_int (this.SuperHandle, selSetPixelBufferCubeMapFaceMipMapLevelCurrentVirtualScreen, pixelBuffer.Handle, (int)face, level, screen);
226
[Export ("setTextureImageToPixelBuffer:colorBuffer:")]
227
public virtual void SetTextureImage (NSOpenGLPixelBuffer pixelBuffer, NSGLColorBuffer source)
229
if (pixelBuffer == null)
230
throw new ArgumentNullException ("pixelBuffer");
231
if (IsDirectBinding) {
232
MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_int (this.Handle, selSetTextureImageToPixelBufferColorBuffer, pixelBuffer.Handle, (int)source);
234
MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_int (this.SuperHandle, selSetTextureImageToPixelBufferColorBuffer, pixelBuffer.Handle, (int)source);
238
public virtual System.IntPtr CGLContextObj {
239
[Export ("CGLContextObj")]
241
if (IsDirectBinding) {
242
return MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selCGLContextObj);
244
return MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selCGLContextObj);
250
MonoMac.AppKit.NSOpenGLPixelBuffer __mt_PixelBuffer_var;
251
public virtual NSOpenGLPixelBuffer PixelBuffer {
252
[Export ("pixelBuffer")]
254
NSOpenGLPixelBuffer ret;
255
if (IsDirectBinding) {
256
ret = (NSOpenGLPixelBuffer) Runtime.GetNSObject (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selPixelBuffer));
258
ret = (NSOpenGLPixelBuffer) Runtime.GetNSObject (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selPixelBuffer));
260
__mt_PixelBuffer_var = ret;
266
public virtual int PixelBufferCubeMapFace {
267
[Export ("pixelBufferCubeMapFace")]
269
if (IsDirectBinding) {
270
return MonoMac.ObjCRuntime.Messaging.int_objc_msgSend (this.Handle, selPixelBufferCubeMapFace);
272
return MonoMac.ObjCRuntime.Messaging.int_objc_msgSendSuper (this.SuperHandle, selPixelBufferCubeMapFace);
278
public virtual int PixelBufferMipMapLevel {
279
[Export ("pixelBufferMipMapLevel")]
281
if (IsDirectBinding) {
282
return MonoMac.ObjCRuntime.Messaging.int_objc_msgSend (this.Handle, selPixelBufferMipMapLevel);
284
return MonoMac.ObjCRuntime.Messaging.int_objc_msgSendSuper (this.SuperHandle, selPixelBufferMipMapLevel);
290
MonoMac.AppKit.NSView __mt_View_var;
291
public virtual NSView View {
295
if (IsDirectBinding) {
296
ret = (NSView) Runtime.GetNSObject (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selView));
298
ret = (NSView) Runtime.GetNSObject (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selView));
304
[Export ("setView:")]
307
throw new ArgumentNullException ("value");
308
if (IsDirectBinding) {
309
MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetView, value.Handle);
311
MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetView, value.Handle);
313
__mt_View_var = value;
317
public virtual int CurrentVirtualScreen {
318
[Export ("currentVirtualScreen")]
320
if (IsDirectBinding) {
321
return MonoMac.ObjCRuntime.Messaging.int_objc_msgSend (this.Handle, selCurrentVirtualScreen);
323
return MonoMac.ObjCRuntime.Messaging.int_objc_msgSendSuper (this.SuperHandle, selCurrentVirtualScreen);
327
[Export ("setCurrentVirtualScreen:")]
329
if (IsDirectBinding) {
330
MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_int (this.Handle, selSetCurrentVirtualScreen, value);
332
MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_int (this.SuperHandle, selSetCurrentVirtualScreen, value);
338
} /* class NSOpenGLContext */