GetCurrentDC() public static method

public static GetCurrentDC ( ) : IntPtr
return IntPtr
Esempio n. 1
0
 public override void SwapBuffers()
 {
     if (!Functions.SwapBuffers(Wgl.GetCurrentDC()))
     {
         throw new GraphicsContextException(String.Format(
                                                "Failed to swap buffers for context {0} current. Error: {1}", this, Marshal.GetLastWin32Error()));
     }
 }
Esempio n. 2
0
 public static bool SupportsExtension(string name)
 {
     return(SupportsExtension(Wgl.GetCurrentDC(), name));
 }