Share via


Device.Present(IntPtr)

Present メソッド

使用例

  • シーンの終了

デバイスが所有する一連のバック バッファの中で次のバッファのコンテンツを表示する。

定義

Visual Basic Public Sub Present( _
    ByVal overrideWindowHandle As IntPtr _
)
C# public void Present(
    IntPtr overrideWindowHandle
);
Managed C++ public: void Present(
    IntPtr overrideWindowHandle
);
JScript public function Present(
    overrideWindowHandle : IntPtr
) : void;

パラメータ

overrideWindowHandle System.IntPtr.

使用例

シーンの終了

この例では、シーンを終了してディスプレイを更新する方法を示す。

EndScene メソッドは、BeginScene メソッドで開始されたシーンを終了する。Present メソッドは、デバイスが所有する一連のバック バッファの中で次のコンテンツを表示する。

using Microsoft.DirectX.Direct3D;

Device device = null;  // Create rendering device

// Generate a scene
.
.
.
device.EndScene();     // End the scene
device.Present();      // Update the display

対象

Device

© 2002 Microsoft Corporation. All rights reserved. Terms of use.