This method of the Direct3dRM Class creates a Microsoft ®Direct3dRM Windows® device by using specified Direct3d objects. It is important that all objects are derived from the same DirectDraw object. In DirectX for Java, it is also important to use create methods to construct objects, rather than using new. Using new to create certain DirectX for Java objects creates uninitialized objects that can be difficult or impossible to manipulate.
See the createDeviceFromSurface method for a sample using standard techniques to create a Retain Mode object.
public Direct3dRMDevice createDeviceFromD3D(Direct3d direct3d, Direct3dDevice direct3dDevice));
Returns the Direct3dRMDevice object if successful; otherwise, null.
direct3d | A Direct3D object. |
direct3dDevice | A Direct3dDevice object. |