54 float top = (float) rect.pos.y; |
54 float top = (float) rect.pos.y; |
55 float bottom = top + (float) rect.size.height; |
55 float bottom = top + (float) rect.size.height; |
56 asc_mat4f_ortho(camera->projection, left, right, bottom, top, -1, 1); |
56 asc_mat4f_ortho(camera->projection, left, right, bottom, top, -1, 1); |
57 } |
57 } |
58 |
58 |
59 void asc_camera_ortho_update_size(AscCamera *camera, asc_vec2i size) { |
59 void asc_camera_ortho_update_size(AscCamera *camera, asc_vec2u size) { |
60 asc_mat4f_ortho_update_size(camera->projection, (float)size.width, (float)size.height); |
60 asc_mat4f_ortho_update_size(camera->projection, (float)size.width, (float)size.height); |
61 } |
61 } |