public static void ResetGamma() { if (gammaChanged != null) { PlatformFunctionality.Get().SetGamma(1); gammaChanged = null; } }
public static void RestoreVideoMode() { if (videoModeChanged != null) { PlatformFunctionality.Get().RestoreVideoMode(); videoModeChanged = null; } }
public static bool ChangeVideoMode(Vector2I mode) { if (!PlatformFunctionality.Get().ChangeVideoMode(mode)) { return(false); } videoModeChanged = mode; return(true); }
static void GenerateVideoModes() { //generate list videoModes = PlatformFunctionality.Get().GetVideoModes(); //safe list if (videoModes.Count == 0) { videoModes.Add(new Vector2I(640, 480)); videoModes.Add(new Vector2I(800, 600)); videoModes.Add(new Vector2I(1024, 768)); videoModes.Add(new Vector2I(1152, 864)); videoModes.Add(new Vector2I(1280, 1024)); videoModes.Add(new Vector2I(1600, 1200)); } //sort CollectionUtility.SelectionSort(videoModes, delegate(Vector2I mode1, Vector2I mode2) { if (mode1.X < mode2.X) { return(-1); } if (mode1.X > mode2.X) { return(1); } if (mode1.Y < mode2.Y) { return(-1); } if (mode1.Y > mode2.Y) { return(1); } return(0); }); }
public static void SetGamma(float value) { PlatformFunctionality.Get().SetGamma(value); gammaChanged = value; }