GsGetLws

Calculates both local-to-world and local-to-screen transformation matrices

void GsGetLws (
        GsCOORDINATE2 *coord2
        MATRIX *lw,
        MATRIX *ls
)

Arguments

coord2 Pointer to local coordinate system
lw Pointer to local-to-world coordinate system result matrix
ls Pointer to local-to-screen coordinate system result matrix

Return Value

None.

Explanation

The local-to-world and the local-to-screen transformation matrices for the coordinate system pointed to by coord2 are calculated and the results are stored in the matrices pointed to by lw and ls , respectively.
The local-to-world matrix must be specified when light source calculation is performed.
GsGetLws() is a fast method for obtaining this matrix.
GsGetLws() is equivalent to calling GsGetLw() followed by GsGetLs(), only with faster performance.

See Also

GsGetLs(), GsGetLws(), GsCOORDINATE2, MATRIX