void Draw(SceneRenderer &renderer, const TextGrid &grid, std::optional< std::array< int, 2 > > pointer) const
Draw every cell of the grid and its text cursor, and the pointer last over them.
static std::unique_ptr< TextFont > Create(SceneRenderer &renderer)
Upload the glyphs of unscii-16 and the pointer.
The cells of the screen and the place of the text cursor.
Definition textgrid.h:99
std::array< float, 16 > Matrix4
A 4 by 4 matrix, column by column.
Definition scenerenderer.h:28
std::array< int, 2 > GridPointInWindow(float windowWidth, float windowHeight, float frameAspect, float x, float y)
The place of the mouse on the grid, with the frame fitted to the window and the grid to the frame as ...
A text-mode screen of 80 by 25 cells, each a character of code page 437 with a foreground and a backg...