This method of the Direct3dRM Class creates a wrapping function that can be used to assign texture coordinates to faces and meshes. The vector [ox oy oz] gives the origin of the wrap, [dx dy dz] gives its z-axis, and [ux uy uz] gives its y-axis. The 2D vectors [ou ov] and [su sv] give an origin and scale factor in the texture applied to the result of the wrapping function.
public Direct3dRMWrap createWrap(int t, Direct3dRMFrame f, float ox, float oy, float oz, float dx, float dy, float dz, float ux, float uy, float uz, floatou, float ov, float su, float sv);
Returns the Direct3dRMWrap object if successful; otherwise, null.
t | One value of the D3DRMWRAP_ type. |
f | The reference frame for the wrap. |
ox | The x component of the wrap's origin. |
oy | The y component of the wrap's origin. |
oz | The z component of the wrap's origin |
dx | The x component of the z-axis of the wrap. |
dy | The y component of the z-axis of the wrap. |
dz | The z component of the z-axis of the wrap. |
ux | The x component of the y-axis of the wrap. |
uy | The y component of the y-axis of the wrap. |
uz | The z component of the y-axis of the wrap. |
ou | Origin in the texture. |
ov | Origin in the texture. |
su | Scale factor in the texture. |
sv | Scale factor in the texture. |