src/field/grid_outline.c
The grid outliner, compiled as ARM code and copied to RAM to run, entered in Thumb through fdGridDrawOutlineCode (field_arm_entries.s).
Macros
| Name | Description | |
|---|---|---|
#define | GRID_OUTLINE_INSIDE 254 | A drawn pixel inside the shape, its four neighbours drawn too. |
#define | GRID_OUTLINE_INSIDE_BLANK 255 | A blank pixel the first pass found inside the shape. |
Functions
| Name | Description | |
|---|---|---|
void | fdGridDrawOutlineArm ( Uint32 width, Uint32 height, Uint8 *grid, Uint32 edge, Uint32 fill) | Redraws a width by height picture of 8-bit pixels as an outline: each drawn pixel inside the shape (its four neighbours drawn too) takes colour fill, and every other drawn pixel colour edge. |
Description
The grid outliner, compiled as ARM code and copied to RAM to run, entered in
Thumb through fdGridDrawOutlineCode (field_arm_entries.s).
Macros in detail
GRID_OUTLINE_INSIDE
#define GRID_OUTLINE_INSIDE 254
A drawn pixel inside the shape, its four neighbours drawn too.
Referenced by fdGridDrawOutlineArm().
Definition at line 7 of file grid_outline.c.
GRID_OUTLINE_INSIDE_BLANK
#define GRID_OUTLINE_INSIDE_BLANK 255
A blank pixel the first pass found inside the shape.
Referenced by fdGridDrawOutlineArm().
Definition at line 9 of file grid_outline.c.
Functions in detail
fdGridDrawOutlineArm
void fdGridDrawOutlineArm( Uint32 width, Uint32 height, Uint8 *grid, Uint32 edge, Uint32 fill)
Redraws a width by height picture of 8-bit pixels as an outline: each drawn pixel inside the shape (its four neighbours drawn too) takes colour fill, and every other drawn pixel colour edge.
References Sint32.
Definition at line 14 of file grid_outline.c.