/// <summary> /// Control the the buffers swap of a device. /// </summary> /// <param name="interval"> /// A <see cref="System.Int32"/> that specifies the minimum number of video frames that are displayed /// before a buffer swap will occur. /// </param> /// <returns> /// It returns a boolean value indicating whether the operation was successful. /// </returns> public override bool SwapInterval(int interval) { if (Wgl.CurrentExtensions.SwapControl_EXT == false) throw new InvalidOperationException("WGL_EXT_swap_control not supported"); if ((interval == -1) && (Wgl.CurrentExtensions.SwapControlTear_EXT == false)) throw new InvalidOperationException("WGL_EXT_swap_control_tear not supported"); return (Wgl.SwapIntervalEXT(interval)); }
/// <summary> /// Control the the buffers swap of a device. /// </summary> /// <param name="interval"> /// A <see cref="System.Int32"/> that specifies the minimum number of video frames that are displayed /// before a buffer swap will occur. /// </param> /// <returns> /// It returns a boolean value indicating whether the operation was successful. /// </returns> public override bool SwapInterval(int interval) { return(Wgl.SwapIntervalEXT(interval)); }