Packages
 In this topic

*Methods

 

Packages   PreviousThis PackageNext
Package com.ms.directX   Previous This
Package
Next

 


Class Direct3dRMWrap

public class Direct3dRMWrap implements IDirect3dRMWrap
{
  // Methods
  public void applyFace(Direct3dRMFace face);
  public void applyMesh(Direct3dRMMesh mesh);
  public void applyMeshBuilder(Direct3dRMMeshBuilder meshbuilder);
  public void applyRelative(Direct3dRMFrame f, Direct3dRMObject o);
}

Applications use the methods of the Direct3dRMWrap class to work with wrap objects.

In addition, the Direct3dRMWrap class inherits the following methods from the Direct3dRMObject class:

addDestroyCallback
duplicate
deleteDestroyCallback
getAppData
getClassName
getName
setAppData
setName

Note This class does not provide an init method. Use the Direct3dRM.createWrap method to create and initialize Direct3dRMWrap objects.

Note Wrap objects wrap a two dimensional surface to a three dimensional object. If you are using DirectX3 on the native side, wrap objects may not behave as expected. If you are using DirectX5, you should not encounter problems.

Methods

applyFace

public void applyFace(Direct3dRMFace face);

Applies a Direct3dRMWrap object to a destination Direct3dRMFace object.

Return Value:

No return value.

ParameterDescription
face The destination object.

See Also: com.ms.directX.Direct3dRM

applyMesh

public void applyMesh(Direct3dRMMesh mesh);

Applies a Direct3dRMWrap object to a destination Direct3dRMMesh object.

Return Value:

No return value.

ParameterDescription
mesh The destination object.

See Also: com.ms.directX.Direct3dRM

applyMeshBuilder

public void applyMeshBuilder(Direct3dRMMeshBuilder meshbuilder);

Applies a Direct3dRMWrap object to a destination Direct3dRMMeshBuilder object.

Return Value:

No return value.

ParameterDescription
meshbuilder The destination object.

See Also: com.ms.directX.Direct3dRM

applyRelative

public void applyRelative(Direct3dRMFrame f, Direct3dRMObject o);

Applies the wrap to the vertices of the object. First it transforms each vertex by the frame's world transformation. Then it transforms each vertex by the inverse world transformation of the wrap's reference frame.

Return Value:

No return value.

ParameterDescription
f The Direct3dRMFrame object containing the object to wrap.
o The Direct3dRMWrap object to apply.

See Also: com.ms.directX.Direct3dRM

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.