Device.Present(Rectangle,Boolean)
Present メソッド
使用例
- シーンの終了
デバイスが所有する一連のバック バッファの中で次のバッファのコンテンツを表示する。
定義
Visual Basic | Public Sub Present( _ ByVal rectPresent As Rectangle, _ ByVal sourceRectangle As Boolean _ ) |
C# | public void Present( Rectangle rectPresent, bool sourceRectangle ); |
Managed C++ | public: void Present( Rectangle rectPresent, bool sourceRectangle ); |
JScript | public function Present( rectPresent : Rectangle, sourceRectangle : boolean ) : void; |
パラメータ
rectPresent | System.Drawing.Rectangle. |
sourceRectangle | System.Boolean. |
使用例
シーンの終了
この例では、シーンを終了してディスプレイを更新する方法を示す。
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
対象
© 2002 Microsoft Corporation. All rights reserved. Terms of use.