Bagikan melalui


ModelMesh.Draw Method (SaveStateMode)

Draws all the ModelMeshPart objects in this mesh, using their current Effect settings, and specifying options for saving effect state.

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

Syntax

public void Draw (
         SaveStateMode saveStateMode
)

Parameters

  • saveStateMode
    The save state options to pass to each Effect.

Exceptions

Exception type Condition
InvalidOperationException Effect is a null.

See Also

Tasks

How to: Render a Model

Reference

ModelMesh Class
ModelMesh Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista