Sprite.Flush() Method (Microsoft.DirectX.Direct3D)

Forces all batched sprites to be submitted to the device.

Definition

Visual Basic Public Sub Flush()
C# public void Flush();
C++ public:
void Flush();
JScript public function Flush();

Remarks

Device states remain as they were after the last call to Sprite.Begin. The list of batched sprites is then cleared.

Exceptions

InvalidCallException

The method call is invalid. For example, a method's parameter might contain an invalid value.

See Also