Exemple #1
0
        protected override void DrawCore(RenderContext context)
        {
            var output = GetOutput(context);

            if (output != null)
            {
                try
                {
                    context.PushParameters(Parameters);

                    ActivateOutput(context);

                    DrawCore(context, output);
                }
                finally
                {
                    context.PopParameters();

                    if (ResetGraphicsStates)
                    {
                        // Make sure that states are clean after this rendering
                        context.GraphicsDevice.ResetStates();
                    }
                }
            }
        }
        protected override void DrawCore(RenderContext context)
        {
            var output = GetOutput(context);
            if (output != null)
            {
                try
                {
                    context.PushParameters(Parameters);

                    ActivateOutput(context);

                    DrawCore(context, output);
                }
                finally
                {
                    context.PopParameters();

                    if (ResetGraphicsStates)
                    {
                        // Make sure that states are clean after this rendering
                        context.GraphicsDevice.ResetStates();
                    }
                }
            }
        }