#pragma once #include struct viewport_window { int32_t first_line; struct { int32_t x0; int32_t y0; int32_t x1; int32_t y1; } box; }; inline void viewport_init_fullscreen(viewport_window& window) { window.first_line = -1; window.box.x0 = 10; window.box.y0 = 20; window.box.x1 = 640 - 10; window.box.y1 = 480 - 20; }