Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetBoneTransforms()

Matrix[] Microsoft.Xna.Framework.Graphics.SkinnedEffect.GetBoneTransforms ( int count)
inline

Definition at line 320 of file SkinnedEffect.cs.

321 {
322 if (count <= 0)
323 {
324 throw new ArgumentOutOfRangeException("count");
325 }
326 if (count > 72)
327 {
328 throw new ArgumentOutOfRangeException("count", string.Format(CultureInfo.CurrentCulture, FrameworkResources.SkinnedEffectMaxBones, new object[1] { 72 }));
329 }
330 Matrix[] valueMatrixArray = bonesParam.GetValueMatrixArray(count);
331 for (int i = 0; i < valueMatrixArray.Length; i++)
332 {
333 valueMatrixArray[i].M44 = 1f;
334 }
335 return valueMatrixArray;
336 }
static CultureInfo CurrentCulture

References Microsoft.Xna.Framework.Graphics.SkinnedEffect.bonesParam, System.count, System.Globalization.CultureInfo.CurrentCulture, System.Globalization.Format, Microsoft.Xna.Framework.Graphics.EffectParameter.GetValueMatrixArray(), Microsoft.Xna.Framework.Matrix.M44, and Microsoft.Xna.Framework.FrameworkResources.SkinnedEffectMaxBones.