Esempio n. 1
0
        /// <summary>
        /// reload an effect including resources
        /// </summary>
        public unsafe void Reload(bool isResourceReloaded)
        {
            if (isResourceReloaded)
            {
                native.InvalidateTextureCache();
            }

            native.StopEffect();

            native.RemoveEffect();

            Export();

            SetRandomSeed(random_seed);
            native.PlayEffect();
            StepEffectFrame((int)Current);
        }
Esempio n. 2
0
 public void InvalidateTextureCache()
 {
     native.InvalidateTextureCache();
 }