Ejemplo n.º 1
0
 /// <summary>
 /// Makes the current.
 /// </summary>
 /// <param name="xid">The xid.</param>
 /// <exception cref="OpenGlException">glXMakeContextCurrent failed</exception>
 public void MakeCurrent(IntPtr xid)
 {
     if (!Glx.MakeContextCurrent(_x11.Display, xid, xid, Handle))
     {
         throw new OpenGlException("glXMakeContextCurrent failed ");
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Clears the context.
 /// </summary>
 public void ClearContext() => Glx.MakeContextCurrent(_x11.Display,
                                                      IntPtr.Zero, IntPtr.Zero, IntPtr.Zero);