/// <summary> /// Begins the change video mode. /// </summary> /// <param name="callApplyChanges">if set to <c>true</c> [call apply changes].</param> /// <param name="videoMode">The video mode.</param> /// <param name="fullScreen">if set to <c>true</c> [full screen].</param> /// <param name="verticalSync">if set to <c>true</c> [vertical sync].</param> /// <param name="hardwareCursor">if set to <c>true</c> [hardware cursor].</param> /// <param name="renderQuality">The render quality.</param> /// <param name="fieldOfView">The field of view.</param> /// <param name="requestCallback">The request callback.</param> /// <param name="state">The state.</param> /// <returns></returns> public static void BeginChangeVideoMode(bool callApplyChanges, int videoAdapter, MyVideoModeEx videoMode, bool fullScreen, bool verticalSync, bool hardwareCursor, MyRenderQualityEnum renderQuality, float fieldOfView, bool first, Action <MyVideoModeChangeOperation> requestCallback) { var result = new MyVideoModeChangeOperation(callApplyChanges, fullScreen, verticalSync, hardwareCursor, fieldOfView, videoAdapter, videoMode, renderQuality, first, requestCallback); m_changeOperations.Enqueue(result); }
public static bool HasAnythingChanged(MyVideoModeChangeOperation changeModeOperation) { return(changeModeOperation.SomethingChanged); }
/// <summary> /// Ends the change video mode. /// </summary> /// <param name="result">The result.</param> /// <returns></returns> public static bool EndChangeVideoMode(MyVideoModeChangeOperation changeModeOperation) { Exceptions.ThrowIf <ArgumentException>(changeModeOperation == null, "Result of uknown type."); return(changeModeOperation.Changed); }
public static bool HasAnythingChanged(MyVideoModeChangeOperation changeModeOperation) { return changeModeOperation.SomethingChanged; }
/// <summary> /// Ends the change video mode. /// </summary> /// <param name="result">The result.</param> /// <returns></returns> public static bool EndChangeVideoMode(MyVideoModeChangeOperation changeModeOperation) { Exceptions.ThrowIf<ArgumentException>(changeModeOperation == null, "Result of uknown type."); return changeModeOperation.Changed; }
/// <summary> /// Begins the change video mode. /// </summary> /// <param name="callApplyChanges">if set to <c>true</c> [call apply changes].</param> /// <param name="videoMode">The video mode.</param> /// <param name="fullScreen">if set to <c>true</c> [full screen].</param> /// <param name="verticalSync">if set to <c>true</c> [vertical sync].</param> /// <param name="hardwareCursor">if set to <c>true</c> [hardware cursor].</param> /// <param name="renderQuality">The render quality.</param> /// <param name="fieldOfView">The field of view.</param> /// <param name="requestCallback">The request callback.</param> /// <param name="state">The state.</param> /// <returns></returns> public static void BeginChangeVideoMode(bool callApplyChanges, int videoAdapter, MyVideoModeEx videoMode, bool fullScreen, bool verticalSync, bool hardwareCursor, MyRenderQualityEnum renderQuality, float fieldOfView, bool first, Action<MyVideoModeChangeOperation> requestCallback) { var result = new MyVideoModeChangeOperation(callApplyChanges, fullScreen, verticalSync, hardwareCursor, fieldOfView, videoAdapter, videoMode, renderQuality, first, requestCallback); m_changeOperations.Enqueue(result); }