struct GsCELL {
u_char u, v;
u_short cba;
u_short flag;
u_short tpage;
};
|
Members
u |
Offset (X-direction) within the page |
v |
Offset (Y-direction) within the page |
cba |
CLUT ID |
flag |
Inversion control flag |
tpage |
Texture page number |
Explanation
A rectangular array of GsCell structures is used to describe individual
cells that fit together to create a background (BG).
Each individual GsCell structure defines a rectangular portion
of the overall BG.
cba displays the position within the frame buffer of a CLUT
corresponding to the cell, and has the following meaning:
Bit
|
Value
|
Bit 0~5
|
X position of CLUT/16
|
Bit 6~15
|
Y position of CLUT
|
tpage is a page number that indicates the position of a sprite
pattern within the frame buffer.
The u and v parameters specify the offset position for
the sprite pattern within the texture page defined by tpage.
flag controls whether the image is flipped during drawing. The
meaning of each bit is as shown below:
Bit
|
Value
|
Bit 0
|
Vertical flip (0 = no flip, 1 = flip)
|
Bit 1
|
Horizontal flip (0 = no flip, 1 = flip)
|
Bit 2~15
|
Reserved
|
|