Author: cjcollier
Date: 2007-12-20 19:48:32 -0500 (Thu, 20 Dec 2007)
New Revision: 91750
Modified:
trunk/gtkglarea-sharp/ChangeLog
trunk/gtkglarea-sharp/gtkglarea/GLArea.custom
trunk/gtkglarea-sharp/gtkglarea/generated/GLArea.cs
Log:
2007-12-20T1709 C.J. Adams-Collier <[EMAIL PROTECTED]>
Overview (from Sam Hocevar): patch for gtkglarea-sharp adds
gtk_gl_area_share_new() to the list of bindings to allow
sharing the GL context. This way one can share textures and
display lists between GL contexts.
* gtkglarea/GLArea.custom
- created c'tor which accepts a share list
* gtkglarea/generated/GLArea.cs
- code generated from above
Modified: trunk/gtkglarea-sharp/ChangeLog
===================================================================
--- trunk/gtkglarea-sharp/ChangeLog 2007-12-21 00:43:18 UTC (rev 91749)
+++ trunk/gtkglarea-sharp/ChangeLog 2007-12-21 00:48:32 UTC (rev 91750)
@@ -1,5 +1,17 @@
2007-12-20T1709 C.J. Adams-Collier <[EMAIL PROTECTED]>
+ Overview (from Sam Hocevar): patch for gtkglarea-sharp adds
+ gtk_gl_area_share_new() to the list of bindings to allow sharing
+ the GL context. This way one can share textures and display lists
+ between GL contexts.
+
+ * gtkglarea/GLArea.custom
+ - created c'tor which accepts a share list
+ * gtkglarea/generated/GLArea.cs
+ - code generated from above
+
+2007-12-20T1709 C.J. Adams-Collier <[EMAIL PROTECTED]>
+
Overview (from Sam Hocevar): The gtkglarea-sharp package fails to
properly detect the gapi tools, causing "make dist" to always
fail.
Modified: trunk/gtkglarea-sharp/gtkglarea/GLArea.custom
===================================================================
--- trunk/gtkglarea-sharp/gtkglarea/GLArea.custom 2007-12-21 00:43:18 UTC
(rev 91749)
+++ trunk/gtkglarea-sharp/gtkglarea/GLArea.custom 2007-12-21 00:48:32 UTC
(rev 91750)
@@ -6,3 +6,15 @@
// C.J. Was Here.
Raw = gtk_gl_area_new(attrList);
}
+
+ [DllImport("libgtkglarea-win32-2.0-0.dll")]
+ static extern IntPtr gtk_gl_area_share_new(int[] attrList,
IntPtr share);
+
+ /* Create a sharing GL context */
+ public GLArea (System.Int32[] attrList, GLArea share) : base
(IntPtr.Zero)
+ {
+ if(share == null)
+ Raw = gtk_gl_area_new(attrList);
+ else
+ Raw = gtk_gl_area_share_new(attrList,
share.Handle);
+ }
Modified: trunk/gtkglarea-sharp/gtkglarea/generated/GLArea.cs
===================================================================
--- trunk/gtkglarea-sharp/gtkglarea/generated/GLArea.cs 2007-12-21 00:43:18 UTC
(rev 91749)
+++ trunk/gtkglarea-sharp/gtkglarea/generated/GLArea.cs 2007-12-21 00:48:32 UTC
(rev 91750)
@@ -98,6 +98,18 @@
Raw = gtk_gl_area_new(attrList);
}
+ [DllImport("libgtkglarea-win32-2.0-0.dll")]
+ static extern IntPtr gtk_gl_area_share_new(int[] attrList,
IntPtr share);
+
+ /* Create a sharing GL context */
+ public GLArea (System.Int32[] attrList, GLArea share) : base
(IntPtr.Zero)
+ {
+ if(share == null)
+ Raw = gtk_gl_area_new(attrList);
+ else
+ Raw = gtk_gl_area_share_new(attrList,
share.Handle);
+ }
+
#endregion
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches