// Copy constructor: public SamplerDesc(SamplerDesc desc) { m_Type = desc.m_Type; m_Name = desc.m_Name; m_Description = desc.m_Description; m_ShapeDefaultTransform = desc.m_ShapeDefaultTransform; }
// Build from native structure: public SamplerDesc(PKFxManagerImpl.SNativeSamplerDesc desc) { m_Type = (ESamplerType)desc.m_SamplerType; m_Name = Marshal.PtrToStringAnsi(desc.m_SamplerName); m_Description = Marshal.PtrToStringAnsi(desc.m_Description); m_ShapeDefaultTransform = new ShapeTransform(desc.m_ShapePosition, desc.m_ShapeRotation, Vector3.one); m_CurveDefaultValue = new CurveDefaultValue(desc.m_CurveDimension, desc.m_CurveKeyCount, desc.m_CurveTimes, desc.m_CurveFloatValues, desc.m_CurveFloatTangents); }
public ShapeTransformWrapper(ShapeTransform model) : base(model) { }