Device コンストラクタ

名前 | 説明 |
---|---|
Device (Int32, DeviceType, Control, CreateFlags, PresentParameters) | Device 構造体の新しいインスタンスを初期化します。 .NET Compact Framework によってサポートされています。 |
Device (Int32, DeviceType, IntPtr, CreateFlags, PresentParameters) | Device 構造体の新しいインスタンスを初期化します。 .NET Compact Framework によってサポートされています。 |

Device コンストラクタ (Int32, DeviceType, Control, CreateFlags, PresentParameters)
アセンブリ: Microsoft.WindowsMobile.DirectX (microsoft.windowsmobile.directx.dll 内)

Public Sub New ( _ adapter As Integer, _ deviceType As DeviceType, _ renderWindow As Control, _ behaviorFlags As CreateFlags, _ presentationParameters As PresentParameters _ )
Dim adapter As Integer Dim deviceType As DeviceType Dim renderWindow As Control Dim behaviorFlags As CreateFlags Dim presentationParameters As PresentParameters Dim instance As New Device(adapter, deviceType, renderWindow, behaviorFlags, presentationParameters)
public Device ( int adapter, DeviceType deviceType, Control renderWindow, CreateFlags behaviorFlags, PresentParameters presentationParameters )
public: Device ( int adapter, DeviceType deviceType, Control^ renderWindow, CreateFlags behaviorFlags, PresentParameters^ presentationParameters )
public Device ( int adapter, DeviceType deviceType, Control renderWindow, CreateFlags behaviorFlags, PresentParameters presentationParameters )
public function Device ( adapter : int, deviceType : DeviceType, renderWindow : Control, behaviorFlags : CreateFlags, presentationParameters : PresentParameters )

このコンストラクタは、必要な表示モード (またはウィンドウ モード) に設定され、適切なバック バッファを割り当てられた、すべての機能を持つデバイス オブジェクトを作成します。アプリケーションは深度バッファを作成し、設定するだけで、レンダリングを開始できます。
デバイスの一部として作成されたバック バッファは、PresentParameters で LockableBackBuffer が指定されている場合にのみロックできます。マルチサンプル バック バッファと深度サーフェイスはロックできません。
Reset メソッドと TestCooperativeLevel メソッドは、このメソッドを使用してデバイスを作成したスレッドから呼び出される必要があります。
ウィンドウ モードの場合、Device、Reset、および SwapChain を呼び出すと (新しいスワップ チェーンを作成するためにコンストラクタをオーバーライドすると)、バック バッファ形式に Unknown を指定できます。つまり、ウィンドウ モードの場合は、アプリケーションがデバイスを呼び出す前に現在のデスクトップ形式を照会する必要はありません。全画面表示モードの場合は、バック バッファ形式を指定する必要があります。


Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Device コンストラクタ (Int32, DeviceType, IntPtr, CreateFlags, PresentParameters)
アセンブリ: Microsoft.WindowsMobile.DirectX (microsoft.windowsmobile.directx.dll 内)

Public Sub New ( _ adapter As Integer, _ deviceType As DeviceType, _ renderWindowHandle As IntPtr, _ behaviorFlags As CreateFlags, _ presentationParameters As PresentParameters _ )
Dim adapter As Integer Dim deviceType As DeviceType Dim renderWindowHandle As IntPtr Dim behaviorFlags As CreateFlags Dim presentationParameters As PresentParameters Dim instance As New Device(adapter, deviceType, renderWindowHandle, behaviorFlags, presentationParameters)
public Device ( int adapter, DeviceType deviceType, IntPtr renderWindowHandle, CreateFlags behaviorFlags, PresentParameters presentationParameters )
public: Device ( int adapter, DeviceType deviceType, IntPtr renderWindowHandle, CreateFlags behaviorFlags, PresentParameters^ presentationParameters )
public Device ( int adapter, DeviceType deviceType, IntPtr renderWindowHandle, CreateFlags behaviorFlags, PresentParameters presentationParameters )
public function Device ( adapter : int, deviceType : DeviceType, renderWindowHandle : IntPtr, behaviorFlags : CreateFlags, presentationParameters : PresentParameters )

このコンストラクタは、必要な表示モード (またはウィンドウ モード) に設定され、適切なバック バッファを割り当てられた、すべての機能を持つデバイス オブジェクトを作成します。アプリケーションは深度バッファを作成し、設定するだけで、レンダリングを開始できます。
デバイスの一部として作成されたバック バッファは、PresentParameters で LockableBackBuffer が指定されている場合にのみロックできます。マルチサンプル バック バッファと深度サーフェイスはロックできません。
Reset メソッドと TestCooperativeLevel メソッドは、このメソッドを使用してデバイスを作成したスレッドから呼び出される必要があります。
ウィンドウ モードの場合、Device、Reset、および SwapChain を呼び出すと (新しいスワップ チェーンを作成するためにコンストラクタをオーバーライドすると)、バック バッファ形式に Unknown を指定できます。つまり、ウィンドウ モードの場合は、アプリケーションがデバイスを呼び出す前に現在のデスクトップ形式を照会する必要はありません。全画面表示モードの場合は、バック バッファ形式を指定する必要があります。


Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- Device コンストラクタのページへのリンク