/// <summary> /// Construct a UniformStateMember. /// </summary> /// <param name="memberInfo"> /// The <see cref="MemberInfo"/> that specify the uniform state variable. /// </param> /// <param name="getUniformValueDelegate"> /// The <see cref="GetUniformValueDelegate"/> used for getting the uniform state from <paramref name="memberInfo"/>. /// </param> public UniformStateMember(MemberInfo memberInfo, GetUniformValueDelegate getUniformValueDelegate) { if (memberInfo == null) { throw new ArgumentNullException("memberInfo"); } if (getUniformValueDelegate == null) { throw new ArgumentNullException("getUniformValueDelegate"); } Member = memberInfo; GetValueDelegate = getUniformValueDelegate; }
/// <summary> /// Construct a UniformStateMember. /// </summary> /// <param name="uniformName"> /// A <see cref="String"/> that specifies the name of the uniform variable. /// </param> /// <param name="memberInfo"> /// The <see cref="MemberInfo"/> that specify the uniform state variable. /// </param> /// <param name="getUniformValueDelegate"> /// The <see cref="GetUniformValueDelegate"/> used for getting the uniform state from <paramref name="memberInfo"/>. /// </param> public UniformStateMember(string uniformName, MemberInfo memberInfo, GetUniformValueDelegate getUniformValueDelegate) : this(uniformName) { if (memberInfo == null) { throw new ArgumentNullException("memberInfo"); } if (getUniformValueDelegate == null) { throw new ArgumentNullException("getUniformValueDelegate"); } UniformName = uniformName; _Member = memberInfo; GetValueDelegate = getUniformValueDelegate; }
/// <summary> /// Construct a UniformStateMember. /// </summary> /// <param name="memberInfo"> /// The <see cref="MemberInfo"/> that specify the uniform state variable. /// </param> /// <param name="getUniformValueDelegate"> /// The <see cref="GetUniformValueDelegate"/> used for getting the uniform state from <paramref name="memberInfo"/>. /// </param> public UniformStateMember(MemberInfo memberInfo, GetUniformValueDelegate getUniformValueDelegate) { if (memberInfo == null) throw new ArgumentNullException("memberInfo"); if (getUniformValueDelegate == null) throw new ArgumentNullException("getUniformValueDelegate"); Member = memberInfo; GetValueDelegate = getUniformValueDelegate; }