Пример #1
0
 public bool Activate()
 {
     if (m_hRC != IntPtr.Zero && !m_DC.Disposed)
     {
         return(WGL.MakeCurrent(m_DC.Handle, m_hRC));
     }
     return(false);
 }
Пример #2
0
 public void ResetContext()
 {
     WGL.MakeCurrent(IntPtr.Zero, IntPtr.Zero);
 }