Пример #1
0
        public static byte[] GetEffectBytes(CompiledEffect effect, GraphicsProfile graphicsProfile)
        {
            switch (effect)
            {
                case CompiledEffect.CircleEffect:
                    return graphicsProfile == GraphicsProfile.HiDef ? CircleEffect.HiDefWindows : CircleEffect.ReachWindows;

                default:
                    throw new Exception("Effect not found");  
            }
        }
Пример #2
0
 public static byte[] GetEffectBytes(CompiledEffect effect)
 {
     return CompiledEffects.GetEffectBytes(effect, FlaiGame.Current.GraphicsDeviceManager.GraphicsProfile);
 }