Microsoft DirectX 8.0 (Visual Basic) |
When a Microsoft® Direct3D® application written in Microsoft Visual Basic® starts, it must obtain a reference to the Direct3D8 class to access Direct3D functionality.
The following code example shows how to use the DirectX8.Direct3DCreate method to retrieve a reference to the Direct3D class.
Dim g_DX As New DirectX8 Dim g_D3D As Direct3D8 Set g_D3D = g_DX.Direct3DCreate() If g_D3D Is Nothing Then Exit Function
To navigate from the Direct3DDevice object to the Direct3D object that created the device, use the Direct3DDevice8.GetDirect3D method.