Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ BindProcessors()

void ReLogic.Peripherals.RGB.ChromaShader.BindProcessors ( )
inlineprivateinherited

Definition at line 60 of file ChromaShader.cs.

61 {
62 MethodInfo[] methods = GetType().GetMethods(BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
63 foreach (MethodInfo methodInfo in methods)
64 {
65 RgbProcessorAttribute rgbProcessorAttribute = (RgbProcessorAttribute)Attribute.GetCustomAttribute(methodInfo, typeof(RgbProcessorAttribute));
66 if (rgbProcessorAttribute != null)
67 {
69 if (processor != null)
70 {
72 }
73 }
74 }
75 }
delegate void Processor(RgbDevice device, Fragment fragment, EffectDetailLevel quality, float time)
void BindProcessor(Processor processor, RgbProcessorAttribute attribute)
static ? Attribute GetCustomAttribute(MemberInfo element, Type attributeType)
Definition Attribute.cs:411
static ? Delegate CreateDelegate(Type type, object target, string method, bool ignoreCase, bool throwOnBindFailure)
Definition Delegate.cs:152

References ReLogic.Peripherals.RGB.ChromaShader.BindProcessor(), System.Delegate.CreateDelegate(), System.Attribute.GetCustomAttribute(), and ReLogic.Peripherals.RGB.ChromaShader.Processor().

Referenced by ReLogic.Peripherals.RGB.ChromaShader.ChromaShader().