From: Kai R. <kre...@us...> - 2004-08-08 14:07:00
|
Update of /cvsroot/csdopenglnet/csdOpenGL/GL In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24934/GL Modified Files: gtkArea.cs gtkContext.cs Log Message: tried to mix openg with x11-drawing Index: gtkContext.cs =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/GL/gtkContext.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** gtkContext.cs 5 Aug 2004 13:09:15 -0000 1.1 --- gtkContext.cs 8 Aug 2004 14:06:52 -0000 1.2 *************** *** 41,44 **** --- 41,50 ---- [ DllImport( "GL" ) ] + static extern void glXWaitGL (); + + [ DllImport( "GL" ) ] + static extern void glXWaitX (); + + [ DllImport( "GL" ) ] static extern void glXSwapBuffers ( IntPtr display, int drawableID ); *************** *** 134,137 **** --- 140,151 ---- } + public void WaitGL(){ + glXWaitGL(); + } + + public void WaitX(){ + glXWaitX(); + } + public void SwapBuffers( Window window ) { Debug.Indent(); Index: gtkArea.cs =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/GL/gtkArea.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** gtkArea.cs 5 Aug 2004 13:09:15 -0000 1.1 --- gtkArea.cs 8 Aug 2004 14:06:52 -0000 1.2 *************** *** 68,71 **** --- 68,79 ---- } + public void WaitGL(){ + context.WaitGL(); + } + + public void WaitX(){ + context.WaitX(); + } + /** \brief OpenGL swapBuffers() * |