| SkeletonHelperDrawBones Method |
Draws the skeleton bones, bone space axes and bone names for debugging.
(Only available in the XNA-compatible build.)
Namespace: DigitalRune.Animation.CharacterAssembly: DigitalRune.Animation (in DigitalRune.Animation.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax public static void DrawBones(
this SkeletonPose skeletonPose,
GraphicsDevice graphicsDevice,
BasicEffect effect,
float axisLength,
SpriteBatch spriteBatch,
SpriteFont spriteFont,
Color color
)
<ExtensionAttribute>
Public Shared Sub DrawBones (
skeletonPose As SkeletonPose,
graphicsDevice As GraphicsDevice,
effect As BasicEffect,
axisLength As Single,
spriteBatch As SpriteBatch,
spriteFont As SpriteFont,
color As Color
)
public:
[ExtensionAttribute]
static void DrawBones(
SkeletonPose^ skeletonPose,
GraphicsDevice^ graphicsDevice,
BasicEffect^ effect,
float axisLength,
SpriteBatch^ spriteBatch,
SpriteFont^ spriteFont,
Color color
)
[<ExtensionAttribute>]
static member DrawBones :
skeletonPose : SkeletonPose *
graphicsDevice : GraphicsDevice *
effect : BasicEffect *
axisLength : float32 *
spriteBatch : SpriteBatch *
spriteFont : SpriteFont *
color : Color -> unit
Parameters
- skeletonPose
- Type: DigitalRune.Animation.CharacterSkeletonPose
The skeleton pose. - graphicsDevice
- Type: GraphicsDevice
The graphics device. - effect
- Type: BasicEffect
A BasicEffect instance. The effect parameters World,
View, and Projection must be
correctly initialized before this method is called.
- axisLength
- Type: SystemSingle
The visible length of the bone space axes. - spriteBatch
- Type: SpriteBatch
A SpriteBatch. Can be to skip text rendering.
- spriteFont
- Type: SpriteFont
A SpriteFont. Can be to skip text rendering.
- color
- Type: Color
The color for the bones and the bone names.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
SkeletonPose. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions Remarks
This method is available only in the XNA-compatible build of the DigitalRune.Animation.dll.
This method draws the skeleton for debugging. It draws a line for each bone and the bone
name. At the bone origin it draws 3 lines (red, green, blue) that visualize the bone
space axes (x, y, z).
See Also