/// <summary>Initializes a new instance of the <see cref="HelpManager" /> class.</summary> /// <param name="input">The input manager.</param> /// <param name="font">The font manager.</param> /// <param name="helpView">The help view start behavior.</param> public HelpManager(InputManager input, FontManager font, HelpViewTypes helpView = HelpViewTypes.Header) { this.input = input; this.HelpView = helpView; this.font = font; this.positionStep = new Vector2(0, this.font.Height); }
/// <summary>Initializes a new instance of the <see cref="WaterRippleDemo"/> class.</summary> public WaterRippleDemo() { this.input = new InputManager(); this.graphics = new GraphicsDeviceManager(this) { PreferredBackBufferWidth = 1920, PreferredBackBufferHeight = 1080, PreferMultiSampling = true, PreferredBackBufferFormat = SurfaceFormat.Color, PreferredDepthStencilFormat = DepthFormat.None, }; #if DEBUG this.graphics.SynchronizeWithVerticalRetrace = false; this.IsFixedTimeStep = false; #else this.graphics.SynchronizeWithVerticalRetrace = true; this.IsFixedTimeStep = true; this.graphics.IsFullScreen = true; #endif this.IsMouseVisible = true; this.Content.RootDirectory = "Content"; // Set default this.Distortion = DistortionType.Shockwave; }