示例#1
0
 /// <summary>
 /// Apply the specified Post Process effect on the requested layer after rendering it
 /// </summary>
 public static void ApplyPostProcess(PostProcessRequest postProcessRequest, int layer)
 {
     if (postProcessRequest.Layer.HasValue == false)
     {
         _drawOnRenderTarget = true;
     }
     _layers[layer - 1].ApplyPostProcess(postProcessRequest);
 }
		public PostProcessAnimation(IceEffect iceEffect)
        {
            _iceEffect = iceEffect;
            _iceEffectParameters = new IceEffectParameters();
            _ppRequest = new PostProcessRequest();
            _ppRequest.IceEffect = _iceEffect;
            _ppRequest.IceEffectParameters = _iceEffectParameters;
            _linearProperties = new LinearProperty[8];
            for (int i = 0; i < _linearProperties.Length; i++)
            {
                _linearProperties[i] = new LinearProperty(1.0f, "Parameter " + i, 0, 10);
            }
            _currentLife = 0;
            _life = 1;
            _currentLife = 0;
            _maxLife = _life * 60;
            _loopMax = 0;
            _loopCounter = 0;
            _isPaused = false;
            _isStopped = false;
            this.AutoPlay = true;
            this.HideWhenStopped = true;
            this.OwnLayerOnly = false;
        }
示例#3
0
 /// <summary>
 /// Apply the specified Post Process effect on the layer after rendering it
 /// </summary>
 public void ApplyPostProcess(PostProcessRequest postProcessRequest)
 {
     _postProcessRequestCollection.Add(postProcessRequest);
 }
示例#4
0
 /// <summary>
 /// Apply the specified Post Process effect on the requested layer after rendering it
 /// </summary>
 public static void ApplyPostProcess(PostProcessRequest postProcessRequest, int layer)
 {
     _layers[layer - 1].ApplyPostProcess(postProcessRequest);
 }
示例#5
0
 /// <summary>
 /// Apply the specified Post Process effect on the layer after rendering it
 /// </summary>
 public void ApplyPostProcess(PostProcessRequest postProcessRequest)
 {
     _postProcessRequestCollection.Add(postProcessRequest);
 }
示例#6
0
 /// <summary>
 /// Apply the specified Post Process effect on the requested layer after rendering it
 /// </summary>
 public static void ApplyPostProcess(PostProcessRequest postProcessRequest, int layer)
 {
     if (postProcessRequest.Layer.HasValue == false)
     {
         _drawOnRenderTarget = true;
     }
     _layers[layer - 1].ApplyPostProcess(postProcessRequest);
 }
示例#7
0
 /// <summary>
 /// Apply the specified Post Process effect on the requested layer after rendering it
 /// </summary>
 public static void ApplyPostProcess(PostProcessRequest postProcessRequest, int layer)
 {
     _layers[layer - 1].ApplyPostProcess(postProcessRequest);
 }