G2DDrawLayer


C Specification

#include <revolution/include/G2D.h>
void G2DDrawLayer( G2DLayer *layer, s8 *aSortBuffer );

Description

G2DDrawLayer is a G2D API main function. This function renders data passed by layer. The aSortBuffer parameter is a pointer to the work buffer used for sorting tiles by material. The number of bytes that this buffer requires is six times the number of tiles that fill the viewport.

This function determines the smallest set of tiles to overlap the viewport (see the figure below).

Tiles are sorted by material order, and all tiles that have the same material are rendered together.

Figure Example of Using the G2DDrawLayer Function

Arguments

layer Pointer to the G2DLayer structure.
aSortBuffer Pointer to the work space buffer.

Return Values

None.

See Also

Revision History

03/01/2006 Initial version.