Skip to main content

Module camera

Module camera 

Source
Expand description

The scene camera (the game’s ticket 0228, moved here in 1154): a picture (a whole map, MapPicture) as a backdrop (game ADR-0048) behind a window of the console, panned by the pixel and zoomed in whole steps, with a caption and a text box over it. For checking by eye that a renderer keeps the scene sharp and seamless.

The game gives the picture, where the window and the box go, and what to say when it has no picture. The screen says what it shows as a SceneCameraView and glyph::paint_camera draws it.

Structs§

CameraLayout
Where the scene camera’s window and text box go on the console.
SceneCameraScreen
Shows a picture through a window: the cursor actions pan (held), Confirm steps the zoom 1× to MAX_ZOOM and round again, Cancel closes.
SceneCameraView
What the scene camera shows.

Constants§

BOX_TEXT
The lines in the text box.
PAN_SPEED
How fast a held cursor key pans, in scene pixels a second.