Skip to Content
The Alchemy Project

include/window/glyph_arm.h

The ARM functions copied to RAM to run: a character drawn into a text window's canvas, and the screen transition's window edges read from the windows' borders (window/glyph_arm.c).

Included by glyph_arm.c, screens_internal.h, window_internal.h and window_spans.c.

Functions

NameDescription
Sint32mnGlyphDrawArm (struct WINDOW *window, Uint32 character, Uint32 x, Uint32 y, const Uint8 *font)Draws one character into a window's text canvas with its top-left corner at pixel (x, y) of the window's interior, and returns how far the text advances.
voidmnScanlineWindowBuildEdges (Uint16 *scanlineBounds, Uint16 *tilemap)Builds the screen transition's window 1 edges for each of the screen's 160 scanlines from the window borders in the UI tilemap at tilemap (BG_SCREEN_WIDTH tiles a row, DISPLAY_TILE_WIDTH shown), so the windows stay in view while the transition covers the rest: each line takes a pair of halfwords in scanlineBounds, the second (left << 8) | right, and a corner's line is a pixel narrower.

Description

The ARM functions copied to RAM to run: a character drawn into a text window's canvas, and the screen transition's window edges read from the windows' borders (window/glyph_arm.c).