GetClut

Calculates value of member clut in a primitive

u_short GetClut (
        int x,
        int y
)

Arguments

x, y Frame buffer address of the CLUT

Return Value

The calculated CLUT ID is returned.

Explanation

The texture CLUT ID is calculated and its value is returned.

Notes

The CLUT address is limited to a multiple of 16 in the x direction.
Calculates primitive CLUT member value.