public static Int32 GetPackedCount(CurveDataType curveType) { switch (curveType) { case CurveDataType.Float3: return(1); case CurveDataType.Float4: return(4); default: throw new NotSupportedException(); } }
public static Int32 GetBitsPerFloat(CurveDataType curveType) { switch (curveType) { case CurveDataType.Float3: return(10); case CurveDataType.Float4: return(12); default: throw new NotSupportedException(); } }
public static Int32 GetFloatCount(CurveDataType curveType) { switch (curveType) { case CurveDataType.Float3: return(3); case CurveDataType.Float4: return(4); default: Debug.WriteLine("Testing unknown data type: " + curveType); return(1); } }
protected Frame(int apiVersion, EventHandler handler, CurveDataType dataType) : base(apiVersion, handler) { this.DataType = dataType; mData = new float[Curve.GetFloatCount(DataType)]; }
public Curve(int apiVersion, EventHandler handler, CurveType type, CurveDataType dataType, Stream s, CurveDataInfo info, IList <float> indexedFloats) : this(apiVersion, handler, type, dataType) { Parse(s, info, indexedFloats); }
protected Curve(int apiVersion, EventHandler handler, CurveType type, CurveDataType dataType) : base(apiVersion, handler) { mType = type; mFrames = new FrameList(handler, dataType); }
public FrameList(EventHandler handler, CurveDataType type, Stream s, CurveDataInfo info, IList <float> floats) : base(handler) { mDataType = type; Parse(s, info, floats); }
public FrameList(EventHandler handler, CurveDataType type, IEnumerable <Frame> ilt) : base(handler, ilt) { mDataType = type; }
public FrameList(EventHandler handler, CurveDataType type) : base(handler) { mDataType = type; }