Click or drag to resize
DigitalRuneSkeletonHelperDrawBones Method
Draws the skeleton bones, bone space axes and bone names for debugging. (Only available in the XNA-compatible build.)

Namespace: DigitalRune.Animation.Character
Assembly: 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
)

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
ExceptionCondition
ArgumentNullExceptionskeletonPose, graphicsDevice or effect is .
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