Microsoft SDK for Java

createFrame

This method of the Direct3dRM Class creates a new child frame of the given parent frame.

Syntax

public Direct3dRMFrame createFrame(Direct3dRMFrame parent);

Return Value

Returns the Direct3dRMFrame object if successful; otherwise, null.

Parameters

parent A frame object that is to be the parent of the new frame.

Remarks

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.

See Also

com.ms.directX.Direct3dRMFrame

© 1999 Microsoft Corporation. All rights reserved. Terms of use.