Nez.Portable/Utils/NezContentManager.cs
/// <summary>
/// loads an ogl effect directly from its bytes and handles disposing of it when the ContentManager is disposed. Name should the the path
/// relative to the Content folder or including the Content folder. Effects must have a constructor that accepts GraphicsDevice and
/// byte[]. Note that this will return a unique instance if you attempt to load the same Effect twice to avoid Effect duplication.
/// </summary>
/// <returns>The effect.</returns>
/// <param name="name">Name.</param>
loads an ogl effect directly from its bytes and handles disposing of it when the ContentManager is disposed. Name should the the path
relative to the Content folder or including the Content folder. Effects must have a constructor that accepts GraphicsDevice and
byte[]. Note that this will return a unique instance if you attempt to load the same Effect twice to avoid Effect duplication.
loads an ogl effect directly from its bytes and handles disposing of it when the ContentManager is disposed . Name should the the path relative to the Content folder or including the Content folder . Effects must have a constructor that accepts GraphicsDevice and byte [] . Note that this will return a unique instance if you attempt to load the same Effect twice to avoid Effect duplication .
internal T loadEffect<T>(string name, byte[] effectCode)
            where T : Effect
        {
            var effect = Activator.CreateInstance(typeof(T), Core.graphicsDevice, effectCode) as T;
            effect.Name = name + "-" + Utils.randomString(5);
            _loadedEffects[effect.Name] = effect;
            return effect;
        }
internal T loadEffect < T > ( string name , byte [ ] effectCode ) where T : Effect { var effect = Activator . CreateInstance ( typeof ( T ) , Core . graphicsDevice , effectCode ) as T ; effect . Name = name + " " + Utils . randomString ( 5 ) ; _loadedEffects [ effect . Name ] = effect ; return effect ; }
loads an ogl effect directly from its bytes and handles disposing of it when the ContentManager is disposed.
loads an ogl effect directly from its bytes and handles disposing of it when the ContentManager is disposed .
None
name
string
None
effectCode
byte[]