/// <summary> /// Constructs a new DisplayMode from the specified parameters. /// </summary> /// <param name="width">The Width of the DisplayMode, in pixels.</param> /// <param name="height">The Height of the DisplayMode, in pixels.</param> /// <param name="color">The ColorMode of the color buffer.</param> /// <param name="depth">The number of bits in the depth buffer.</param> /// <param name="stencil">The number of bits in the stencil buffer.</param> /// <param name="aux">The number of bits in the auxilliary buffer.</param> /// <param name="fullscreen">Set to true for a fullscreen DisplayMode.</param> /// <param name="stereo">Set to true for a DisplayMode with stereographic capabilities.</param> /// <param name="buffers">The number of render buffers. Typical values include one (single-), two (double-) or three (triple-buffering).</param> /// <param name="vsync">Set to true to sync the updates to the screen refresh rate.</param> /// <param name="refresh">The desired RefreshRate. Taken into account only for Fullscreen DisplayModes.</param> public DisplayMode(int width, int height, ColorMode color, int depth, int stencil, int aux, int buffers, bool fullscreen, bool stereo, bool vsync, float refresh) { this.Width = width; this.Height = height; this.Color = color; this.DepthBits = depth; this.StencilBits = stencil; this.AuxBits = aux; this.Buffers = buffers; this.Fullscreen = fullscreen; this.Stereo = stereo; this.Vsync = vsync; this.RefreshRate = refresh; }
public void SetColorMode(ColorMode mode) { lastColorMode = ColorMode = mode; }
public static void SetSeriesColorModeAll(ColorMode mode) { for (int i = 0; i < DataSeries.AllDataSeries.Count; i++) DataSeries.AllDataSeries[i].SetColorMode(mode); }
public static DataSeries SetSeriesColorMode(DataSeries series, ColorMode mode) { series.SetColorMode(mode); return series; }
public static DataSeries SetColorMode(ColorMode mode) { return SetSeriesColorMode(GetCurrentDataSeries(), mode); }
/// <summary> /// Constructs a new DisplayMode. /// </summary> /// <param name="width">The Width of the DisplayMode in pixels.</param> /// <param name="height">The Height of the DisplayMode in pixels.</param> /// <param name="color">The ColorMode of the color buffer.</param> /// <param name="depth">The number of bits in the depth buffer.</param> /// <param name="fullscreen">True for a fullscreen DisplayMode, false otherwise.</param> public DisplayMode(int width, int height, ColorMode color, int depth, bool fullscreen) : this(width, height, color, depth, 0, 0, 0, fullscreen, false, false, 0.0f) { }
/// <summary> /// Constructs a new DisplayMode. /// </summary> /// <param name="width">The Width of the DisplayMode in pixels.</param> /// <param name="height">The Height of the DisplayMode in pixels.</param> /// <param name="color">The ColorMode of the color buffer.</param> /// <param name="depth">The number of bits in the depth buffer.</param> public DisplayMode(int width, int height, ColorMode color, int depth) : this(width, height, color, depth, 0, 0, 0, false, false, false, 0.0f) { }