This method of the Direct3dRM Class creates a new child frame of the given parent frame.
public Direct3dRMFrame createFrame(Direct3dRMFrame parent);
Returns the Direct3dRMFrame object if successful; otherwise, null.
parent | A frame object that is to be the parent of the new frame. |
The child frame inherits the motion attributes of its parent. For example, if the parent is moving with a given velocity, the child frame will also move with that velocity. Furthermore, if the parent is set rotating, the child frame will rotate about the origin of the parent. Frames that have no parent are called scenes. To create a scene, specify null as the parent. An application can create a frame with no parent, and then associate it with a parent frame later by using the addChild method.
com.ms.directX.Direct3dRMFrame