using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace BansheeEngine
{
/** @addtogroup Animation
* @{
*/
/// Contains information about bones required for skeletal animation.
public partial class Skeleton : ScriptObject
{
private Skeleton(bool __dummy0) { }
protected Skeleton() { }
/// Returns the total number of bones in the skeleton.
public uint NumBones
{
get { return Internal_getNumBones(mCachedPtr); }
}
/// Returns information about a bone at the provided index.
/// Index of the bone to retrieve information for.
/// Information about the bone at the specified index.
public BoneInfo GetBoneInfo(int boneIdx)
{
BoneInfo temp;
Internal_getBoneInfo(mCachedPtr, boneIdx, out temp);
return temp;
}
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern uint Internal_getNumBones(IntPtr thisPtr);
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void Internal_getBoneInfo(IntPtr thisPtr, int boneIdx, out BoneInfo __output);
}
/** @} */
}