resizing the window projection matrix
This commit is contained in:
parent
1fd12cd1ec
commit
ad557ea596
@ -222,6 +222,13 @@ init :: (_win_width: s32, _win_height: s32) {
|
|||||||
init_font(*JetBrainsMonoRegular, "fonts/JetBrainsMono-Regular.ttf", 12);
|
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) {
|
new_frame :: (_mouse: Vector2, _mouse_delta: Vector2, _mouse_wheel_delta: float, _mouse_left: bool) {
|
||||||
frame += 1;
|
frame += 1;
|
||||||
mouse = _mouse;
|
mouse = _mouse;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user