This method of the Direct3dDevice Class retrieves the current Direct3d object.
public Direct3d getDirect3D();
Returns the Direct3d object if successful; otherwise, returns null.