Nez.Portable/Utils/NezContentManager.cs
/// <summary>
/// loads and manages any Effect that is built-in to MonoGame such as BasicEffect, AlphaTestEffect, etc. Note that this will
/// return a unique instance if you attempt to load the same Effect twice. If you intend to use the same Effect in multiple locations
/// keep a reference to it and use it directly.
/// </summary>
/// <returns>The mono game effect.</returns>
/// <typeparam name="T">The 1st type parameter.</typeparam>
loads and manages any Effect that is built-in to MonoGame such as BasicEffect, AlphaTestEffect, etc. Note that this will
return a unique instance if you attempt to load the same Effect twice. If you intend to use the same Effect in multiple locations
keep a reference to it and use it directly.
loads and manages any Effect that is built - in to MonoGame such as BasicEffect AlphaTestEffect etc . Note that this will return a unique instance if you attempt to load the same Effect twice . If you intend to use the same Effect in multiple locations keep a reference to it and use it directly .
public T loadMonoGameEffect<T>()
            where T : Effect
        {
            var effect = Activator.CreateInstance(typeof(T), Core.graphicsDevice) as T;
            effect.Name = typeof(T).Name + "-" + Utils.randomString(5);
            _loadedEffects[effect.Name] = effect;
            return effect;
        }
public T loadMonoGameEffect < T > ( ) where T : Effect { var effect = Activator . CreateInstance ( typeof ( T ) , Core . graphicsDevice ) as T ; effect . Name = typeof ( T ) . Name + " " + Utils . randomString ( 5 ) ; _loadedEffects [ effect . Name ] = effect ; return effect ; }
loads and manages any Effect that is built-in to MonoGame such as BasicEffect, AlphaTestEffect, etc.
loads and manages any Effect that is built - in to MonoGame such as BasicEffect AlphaTestEffect etc .
The mono game effect.
The mono game effect .
typeparam
The 1st type parameter.
The 1st type parameter .