Skip to Content
The Alchemy Project

src/field/screen_transition_shapes.c

The window shapes of WINDOW_TRANSITION_SHAPE, one for each step of its progress (fdScreenTransitionUpdateScanlineTable): a hand sweeping clockwise from twelve o'clock round the centre of the screen, as The Broken Seal has them.

Macros

NameDescription
#defineSPAN_FILL (lines, left, right) {lines, WIN_RANGE(left, right)}A run of lines all with the window from left to right; (255, 255) is a window that shows nothing.
#defineSPAN_SLOPE (lines, leftFrom, leftTo, rightFrom, rightTo)A run of lines whose window edges slide from (leftFrom, rightFrom) on its first line toward (leftTo, rightTo) on its last.

Variables

NameDescription
TRANSITION_SHAPEScreenTransitionShapes []One shape for each step of the transition: WINOUT and WININ, then its runs of lines down the screen.

Description

The window shapes of WINDOW_TRANSITION_SHAPE, one for each step of its progress (fdScreenTransitionUpdateScanlineTable): a hand sweeping clockwise from twelve o'clock round the centre of the screen, as The Broken Seal has them.

Macros in detail

SPAN_FILL

#define SPAN_FILL(lines, left, right) {lines, WIN_RANGE(left, right)}

A run of lines all with the window from left to right; (255, 255) is a window that shows nothing.

Referenced by ScreenTransitionShapes.

Definition at line 10 of file screen_transition_shapes.c.

SPAN_SLOPE

#define SPAN_SLOPE(lines, leftFrom, leftTo, rightFrom, rightTo)

A run of lines whose window edges slide from (leftFrom, rightFrom) on its first line toward (leftTo, rightTo) on its last.

Referenced by ScreenTransitionShapes.

Definition at line 13 of file screen_transition_shapes.c.

Variables in detail

ScreenTransitionShapes

TRANSITION_SHAPE ScreenTransitionShapes[]

One shape for each step of the transition: WINOUT and WININ, then its runs of lines down the screen. The first seventeen open a window over the right half, the rest close one over the left.

Referenced by fdScreenTransitionUpdateScanlineTable().

Definition at line 20 of file screen_transition_shapes.c.