// MonoGame - Copyright (C) The MonoGame Team
// This file is subject to the terms and conditions defined in
// file 'LICENSE.txt', which is part of this source code package.
namespace Microsoft.Xna.Framework.Content.Pipeline.Graphics
{
///
/// Provides properties for managing a bone weight.
///
public struct BoneWeight
{
string boneName;
float weight;
///
/// Gets the name of the bone.
///
public string BoneName
{
get
{
return boneName;
}
}
///
/// Gets the amount of bone influence, ranging from zero to one. The complete set of weights in a BoneWeightCollection should sum to one.
///
public float Weight
{
get
{
return weight;
}
internal set
{
weight = value;
}
}
///
/// Initializes a new instance of BoneWeight with the specified name and weight.
///
/// Name of the bone.
/// Amount of influence, ranging from zero to one.
public BoneWeight(string boneName, float weight)
{
this.boneName = boneName;
this.weight = weight;
}
}
}