Bagikan melalui


Effect.Begin Method (SaveStateMode)

Begins application of the active technique, specifying options for saving state.

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

Syntax

public void Begin (
         SaveStateMode saveStateMode
)

Parameters

  • saveStateMode
    Options for saving the state prior to application of the technique.

Exceptions

Exception type Condition
InvalidOperationException

Begin has been called before calling End after the last call to Begin. Begin cannot be called again until End has been successfully called.

See Also

Reference

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

Platforms

Xbox 360, Windows XP SP2, Windows Vista