Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
 public void SetColorMode(ColorMode mode)
 {
     lastColorMode = ColorMode = mode;
 }
Ejemplo n.º 3
0
 public static void SetSeriesColorModeAll(ColorMode mode)
 {
     for (int i = 0; i < DataSeries.AllDataSeries.Count; i++)
         DataSeries.AllDataSeries[i].SetColorMode(mode);
 }
Ejemplo n.º 4
0
 public static DataSeries SetSeriesColorMode(DataSeries series, ColorMode mode)
 {
     series.SetColorMode(mode);
     return series;
 }
Ejemplo n.º 5
0
 public static DataSeries SetColorMode(ColorMode mode)
 {
     return SetSeriesColorMode(GetCurrentDataSeries(), mode);
 }
Ejemplo n.º 6
0
 /// <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)
 {
 }
Ejemplo n.º 7
0
 /// <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)
 {
 }