Exemple #1
0
        public void StyleEffects(IStyleEffectsStage stage, ITexture source, IRenderTarget target)
        {
            if (stage == null)
            {
                throw new Yak2DException("Unable to queue StyleEffectStage. Stage is null", new ArgumentNullException());
            }

            if (source == null)
            {
                throw new Yak2DException("Unable to queue StyleEffectStage. Source is null", new ArgumentNullException());
            }

            if (target == null)
            {
                throw new Yak2DException("Unable to queue StyleEffectStage. Target is null", new ArgumentNullException());
            }

            if (source.Id == target.Id)
            {
                throw new Yak2DException("Unable to queue StyleEffectStage. Source and Target Surfaces cannot be the same", new ArgumentNullException());
            }

            _commandQueue.Add(RenderCommandType.StyleEffect,
                              stage.Id,
                              target.Id,
                              0UL,
                              source.Id,
                              0UL,
                              0UL,
                              0UL,
                              RgbaFloat.Clear);
        }
Exemple #2
0
        public void SetStyleEffectsCrtConfig(IStyleEffectsStage effect, CrtEffectConfiguration config, float transitionSeconds)
        {
            if (effect == null)
            {
                throw new Yak2DException("Unable to set style effect as stage passed is null");
            }

            SetStyleEffectsCrtConfig(effect.Id, config, transitionSeconds);
        }
Exemple #3
0
        public void SetStyleEffectsOldMovieConfig(IStyleEffectsStage effect, OldMovieConfiguration config, float transitionSeconds)
        {
            if (effect == null)
            {
                throw new Yak2DException("Unable to set colour style as stage passed is null");
            }

            SetStyleEffectsOldMovieConfig(effect.Id, config, transitionSeconds);
        }