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); } }
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; } }
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; } }
public GLArea(int[] attributeList, GLArea share) { DoubleBuffered = false; context = GLContext.CreateContext(attributeList, share != null ? share.context : null, IntPtr.Zero); }
public GLArea(int[] attributeList, GLArea share) { DoubleBuffered = false; context = GLContext.CreateContext (attributeList, share != null ? share.context : null, IntPtr.Zero); }