| 82 | } |
| 83 | |
| 84 | void Camera::window_resized(const int w, const int h) { |
| 85 | projection_.set_ortho_projection(static_cast<float>(w) / 2.0f, |
| 86 | static_cast<float>(h) / 2.0f, |
| 87 | -1.0f, |
| 88 | 1.0f); |
| 89 | canvas_width_ = w; |
| 90 | canvas_height_ = h; |
| 91 | } |
| 92 | |
| 93 | void Camera::scroll_callback(const float delta) { |
| 94 | const auto mouse_x = static_cast<float>(gl_canvas_ref().mouse_x()); |
no test coverage detected