Example #1
0
 static void Resize_cb(IntPtr inst, int width, int height)
 {
     try {
         GLArea __obj = GLib.Object.GetObject(inst, false) as GLArea;
         __obj.OnResize(width, height);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
Example #2
0
 static IntPtr CreateContext_cb(IntPtr inst)
 {
     try {
         GLArea        __obj = GLib.Object.GetObject(inst, false) as GLArea;
         Gdk.GLContext __result;
         __result = __obj.OnCreateContext();
         return(__result == null ? IntPtr.Zero : __result.Handle);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
Example #3
0
 static bool Render_cb(IntPtr inst, IntPtr context)
 {
     try {
         GLArea __obj = GLib.Object.GetObject(inst, false) as GLArea;
         bool   __result;
         __result = __obj.OnRender(GLib.Object.GetObject(context) as Gdk.GLContext);
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
Example #4
0
 public GLArea(int[] attributeList, GLArea share)
 {
     DoubleBuffered = false;
     context        = GLContext.CreateContext(attributeList,
                                              share != null ? share.context : null, IntPtr.Zero);
 }
Example #5
0
 public GLArea(int[] attributeList, GLArea share)
 {
     DoubleBuffered = false;
     context = GLContext.CreateContext (attributeList,
                                        share  != null ? share.context : null, IntPtr.Zero);
 }