IDirect3DRMFrame::AddRotation

HRESULT AddRotation(D3DRMCOMBINETYPE rctCombine, D3DVALUE rvX,

D3DVALUE rvY, D3DVALUE rvZ, D3DVALUE rvTheta);

Adds a rotation about (rvX, rvY, rvZ) by the number of radians specified in rvTheta.

·Returns D3DRM_OK if successful, or an error otherwise. For a list of possible return codes, see Direct3D Retained-Mode Return Values.

rctCombine

A member of the D3DRMCOMBINETYPE enumerated type that specifies how to combine the new rotation with any current frame transformation.

rvX, rvY, and rvZ

Axis about which to rotate.

rvTheta

Angle of rotation, in radians.

The specified rotation changes the matrix only for the frame identified by this IDirect3DRMFrame interface. This method changes the objects in the frame only once, unlike IDirect3DRMFrame::SetRotation, which changes the matrix with every render tick.