예제 #1
0
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);

            bloom          = new Bloom(GraphicsDevice, spriteBatch);
            bloom.Settings = BloomSettings.PresetSettings[3];
            renderTarget1  = new RenderTarget2D(GraphicsDevice, width, height, false, pp.BackBufferFormat, pp.DepthStencilFormat, pp.MultiSampleCount, RenderTargetUsage.DiscardContents);
            renderTarget2  = new RenderTarget2D(GraphicsDevice, width, height, false, pp.BackBufferFormat, pp.DepthStencilFormat, pp.MultiSampleCount, RenderTargetUsage.DiscardContents);

            TextureManager.LoadContent(Content);
            ParticleSystem.Init(50000);
            ItemDictionary.LoadItemDatabase();
            bloom.LoadContent(Content, pp);
            // GUI.GUI.Init();
            Reset();
            Debug.Log($"Entities: {MarauderEngine.Entity.Entity.nextAvailibleID:N}");
        }