#include <revolution/G2D.h> void G2DDrawLayer( G2DLayer *layer, s8 *aSortBuffer );
layer |
Pointer to the G2DLayer structure. |
|---|---|
aSortBuffer |
Pointer to the workspace buffer. |
None.
The G2DDrawLayer function is the main function of the G2D API. This function renders data passed by *layer. The parameter aSortBuffer represents a pointer to the work area used to sort tiles by material. The number of bytes that must be allocated for this buffer is six times the number of tiles that fill the viewport.
This function determines the smallest set of tiles needed to overlap the viewport (see the figure below).
Tiles are sorted according to the material used and tiles having the same material are all rendered together.

Figure Example of Using the G2DDrawLayer Function
None.
2006/03/01 Initial version.
CONFIDENTIAL