AvatarRenderer.Draw Method

Draws the avatar to the current render target.
Dd940278.note(en-us,XNAGameStudio.31).gifWindows Specific Information
Avatar-related APIs are exposed on Windows to ease cross-platform development between Windows and the Xbox 360. All avatar-related methods return default values, and rendering methods do not draw anything to the screen.

Namespace: Microsoft.Xna.Framework.GamerServices
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public void Draw (
         IList<Matrix> bones,
         AvatarExpression expression


Collection of current bone transforms for the avatar. The transforms are in local bone space relative to their parent.
Current expression textures for the avatar.

If any avatar assets are not loaded, the standard loading effect is displayed (determined by the renderer's constructor call). Determine the current loading state by checking the value of the IsLoaded property.

The avatar model is always rendered as if FillMode.Solid is the current fill mode value.

Xbox 360, Windows XP SP2, Windows Vista

Community Additions