public void ColourEffects(IColourEffectsStage stage, ITexture source, IRenderTarget target) { if (stage == null) { throw new Yak2DException("Unable to queue ColourEffectStage. Stage is null", new ArgumentNullException()); } if (source == null) { throw new Yak2DException("Unable to queue ColourEffectStage. Source is null", new ArgumentNullException()); } if (target == null) { throw new Yak2DException("Unable to queue ColourEffectStage. Target is null", new ArgumentNullException()); } if (source.Id == target.Id) { throw new Yak2DException("Unable to queue ColourEffectStage. Source and Target Surfaces cannot be the same", new ArgumentNullException()); } _commandQueue.Add(RenderCommandType.ColourEffectStage, stage.Id, target.Id, 0UL, source.Id, 0UL, 0UL, 0UL, RgbaFloat.Clear); }
public void SetColourEffectsConfig(IColourEffectsStage effect, ColourEffectConfiguration config, float transitionSeconds) { if (effect == null) { throw new Yak2DException("Unable to set colour effect as stage passed is null"); } SetColourEffectsConfig(effect.Id, config, transitionSeconds); }