MapCelListToCQuad

Maps a list of cels to a quad.

Synopsis

void MapCelListToCQuad (CCB *list, CQuad *quad)

Description

This function maps a list of cels to the specified quad. It is much faster than a standard MapCel() call because it only has to calculate a simple rectangular projection. It performs a MapCelToCQuad() on the first cel in the list. It then adjusts the X/Y coordinates of the rest of the cels in the list such that all the cels maintain the same relative X/Y relationships to each other. It also copies the size and perspective fields from the first cel into all the rest of the cels in the list. The net effect is that the list of cels moves and scales as if it were a single unit.

Arguments

list
Pointer to a list of one or more cels to be mapped.
quad
Pointer to the CQuad to which the cels are to be mapped.

See Also

MapAACelToCQuad, MapCelToCQuad