Example #1
0
        public Engine()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";
            this.IsMouseVisible   = true;

            graphics.PreferredBackBufferWidth  = 800;
            graphics.PreferredBackBufferHeight = 600;
            graphics.IsFullScreen = true;
            graphics.ApplyChanges();

            Components.Add(new GameLayer(this));


            bloom                   = new BloomComponent(this);
            bloom.Settings          = BloomSettings.PresetSettings[0];
            bloom.Settings.MixValue = 0;
            bloom.DebugInput        = true;
            Components.Add(bloom);

            //important: add fps after bloom, else it will be blurred
            FrameRateCounter fps = new FrameRateCounter(this);

            fps.Position = new Vector2(5, 5);
            Components.Add(fps);

            Components.Add(new MessageLayer(this));
        }
Example #2
0
        public Engine()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";
            this.IsMouseVisible = true;

            graphics.PreferredBackBufferWidth = 800;
            graphics.PreferredBackBufferHeight = 600;
            graphics.IsFullScreen = true;
            graphics.ApplyChanges();

            Components.Add(new GameLayer(this));

            bloom = new BloomComponent(this);
            bloom.Settings = BloomSettings.PresetSettings[0];
            bloom.Settings.MixValue = 0;
            bloom.DebugInput = true;
            Components.Add(bloom);

            //important: add fps after bloom, else it will be blurred
            FrameRateCounter fps = new FrameRateCounter(this);
            fps.Position = new Vector2(5, 5);
            Components.Add(fps);

            Components.Add(new MessageLayer(this));
        }