src/camera.c

changeset 105
2b7f92ff2c15
parent 101
febf3dc10011
child 106
895f92cff6b8
equal deleted inserted replaced
104:2ca88ec29953 105:2b7f92ff2c15
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 }

mercurial