public AutoConstantEntry Clone() { var n = new AutoConstantEntry(this.Type, this.PhysicalIndex, this.FData, this.Variability, this.ElementCount); n.Data = this.Data; return(n); }
/// <summary> /// Overloaded method. /// </summary> /// <param name="type">The type of automatic constant to set.</param> /// <param name="index"> /// The location in the constant list to place this updated constant every time /// it is changed. Note that because of the nature of the types, we know how big the /// parameter details will be so you don't need to set that like you do for manual constants. /// </param> /// <param name="extraInfo">If the constant type needs more information (like a light index) put it here.</param> public void SetAutoConstant( int index, AutoConstantType type, float extraInfo ) { AutoConstantEntry entry = new AutoConstantEntry( type, index, extraInfo, 0 ); autoConstantList.Add( entry ); }
/// <summary> /// Overloaded method. /// </summary> public void SetAutoConstant( AutoConstantEntry entry ) { autoConstantList.Add( entry ); }
/// <summary> /// Overloaded method. /// </summary> /// <param name="type">The type of automatic constant to set.</param> /// <param name="index"> /// The location in the constant list to place this updated constant every time /// it is changed. Note that because of the nature of the types, we know how big the /// parameter details will be so you don't need to set that like you do for manual constants. /// </param> /// <param name="extraInfo">If the constant type needs more information (like a light index) put it here.</param> public void SetAutoConstant( int index, AutoConstantType type, int extraInfo ) { AutoConstantEntry entry = new AutoConstantEntry( type, index, extraInfo, 0 ); System.Diagnostics.Debug.Assert( type != AutoConstantType.SinTime_0_X ); autoConstantList.Add( entry ); }
public AutoConstantEntry Clone() { AutoConstantEntry rv = new AutoConstantEntry(type, index, fdata); rv.data = data; return rv; }