hyades.Application.Draw C# (CSharp) 메소드

Draw() 보호된 메소드

protected Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
리턴 void
        protected override void Draw(GameTime gameTime)
        {
            SpriteRenderer.Clear();

            PostProcessor postprocessor = PostProcessor.GetInstance(device);
            device.SetRenderTargets(postprocessor.result_rt);

            device.Clear(CLEAR_COLOR);
            device.SamplerStates[0] = SamplerState.LinearWrap;
            //device.SamplerStates[0] = SamplerState.PointClamp;
            device.DepthStencilState = DepthStencilState.Default;
            device.BlendState = BlendState.AlphaBlend;

            screenmanager.Draw(device);

            postprocessor.Bloom(postprocessor.result_rt, null, 0.25f, 1, 2 * brightness, 0.5f, 0.5f);
        }