diff --git a/module.jai b/module.jai index 16b2547..ed5bc37 100644 --- a/module.jai +++ b/module.jai @@ -222,6 +222,13 @@ init :: (_win_width: s32, _win_height: s32) { init_font(*JetBrainsMonoRegular, "fonts/JetBrainsMono-Regular.ttf", 12); } +window_resize :: (_win_width: s32, _win_height: s32) { + win_width = _win_width; + win_height = _win_height; + + window_projection_matrix = orthographic_projection_matrix(0.0, xx win_width, xx win_height, 0.0, -1.0, 1.0); +} + new_frame :: (_mouse: Vector2, _mouse_delta: Vector2, _mouse_wheel_delta: float, _mouse_left: bool) { frame += 1; mouse = _mouse;