AvatarRenderer.Draw Method (Generic IList, AvatarExpression)
Draws the avatar to the current render target.
Syntax
'Declaration
Public Sub Draw ( _
bones As IList(Of Matrix), _
expression As AvatarExpression _
)
public void Draw (
IList<Matrix> bones,
AvatarExpression expression
)
public:
void Draw(
IList<Matrix> bones,
AvatarExpression expression
)
Parameters
- bones
Type: IList<Matrix>
Collection of current bone transforms for the avatar. The transforms are in local bone space relative to their parent. - expression
Type: AvatarExpression
Current expression textures for the avatar.
Remarks
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 State property.
The avatar model is always rendered as if FillMode.Solid is the current fill mode value.
Note
The AvatarRenderer class requires each bone transformation to be decomposable. Passing a bone transformation matrix that is not decomposable to AvatarRenderer.Draw will result in a InvalidOperationException exception. Use Decompose on each matrix to ensure each matrix in the bone matrix collection is decomposable. If the matrix in question is not decomposable, Decompose will return false.
Requirements
Namespace: Microsoft.Xna.Framework.GamerServices
Assembly: Microsoft.Xna.Framework.GamerServices (in microsoft.xna.framework.gamerservices.dll)
See Also
Reference
AvatarRenderer Class
AvatarRenderer Members
Microsoft.Xna.Framework.GamerServices Namespace
Platforms
Windows Phone