Microsoft SDK for Java

setDecalOrigin

This method of the Direct3dRMTexture Class sets the decal origin as an offset from the top left of the decal.

Syntax

public void setDecalOrigin(int x, int y);

Parameters

x The x-coordinate of the new origin for the decal.
y The y-coordinate of the new origin for the decal.

Remarks

The decal origin is mapped to its frame's position when rendering. For example, the origin of a decal of a cross would be set to the middle of the decal, and the origin of an arrow pointing down would be set to midway along the bottom edge.

By default, the initial decal origin is [0, 0].

See Also

getDecalOrigin

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