Inheritance: IEffectParameterCollection
Beispiel #1
0
 public ProtogameEffect(Effect targetEffect, IEffectSemantic[] availableSemantics)
 {
     _targetEffect       = targetEffect;
     _availableSemantics = availableSemantics;
     Name       = "DynamicEffect";
     Parameters = new ProtogameEffectParameterCollection(_targetEffect);
 }
Beispiel #2
0
 public ProtogameEffect(GraphicsDevice graphicsDevice, IEffectReader reader, string name, IEffectSemantic[] availableSemantics)
 {
     _availableSemantics = availableSemantics;
     _targetEffect       = new Effect(graphicsDevice, reader);
     _targetEffect.Name  = name;
     Name       = name;
     Parameters = new ProtogameEffectParameterCollection(_targetEffect);
 }