struct WORLD_MAP_SCANLINE
One screen line's ground-plane terms on the world map: its width scale and distance, from which its affine parameters are built (fdWorldMapBuildScanlineTable, when the pitch changes).
Declared in world_map_affine.h.
Fields
| Name | Description | |
|---|---|---|
FIXED | scale | line's width scale, 16.16 fixed point; 0 for a line above the horizon |
FIXED | depth | signed ground distance, halved, 16.16 fixed point; 0 above horizon |
Sint32 | offsetX | map start from origin, 16.16; 0 from fdWorldMapBuildScanlineTable |
Sint32 | offsetY | the same, down the map |
Sint16 | pa | BG2PA as last worked out, kept while the yaw holds |
Sint16 | pc | BG2PC, the same |
Description
One screen line's ground-plane terms on the world map: its width scale and
distance, from which its affine parameters are built
(fdWorldMapBuildScanlineTable, when the pitch changes).
struct WORLD_MAP_SCANLINE
Referenced by fdWorldMapBuildScanlineTable() and fdWorldMapUpdateAffineLines().
Definition at line 13 of file world_map_affine.h.
Fields in detail
scale
FIXED scale
line's width scale, 16.16 fixed point; 0 for a line above the horizon
depth
FIXED depth
signed ground distance, halved, 16.16 fixed point; 0 above horizon
offsetX
Sint32 offsetX
map start from origin, 16.16; 0 from
fdWorldMapBuildScanlineTable
offsetY
Sint32 offsetY
the same, down the map
pa
Sint16 pa
BG2PA as last worked out, kept while the yaw holds
pc
Sint16 pc
BG2PC, the same