7 Camera::Camera(Handle<Entity> e, const CameraSetup &s):
10 fov_y(setup.field_of_view_y),
12 near_clip(setup.near_clip),
13 far_clip(setup.far_clip)
15 if(!is_orthographic())
16 size = { get_aspect(), 1.0f };
19 void Camera::set_field_of_view(Geometry::Angle<float> f, float a)
22 throw logic_error("Camera is not perspective");
28 void Camera::set_size(const LinAl::Vector<float, 2> &s)
30 if(!is_orthographic())
31 throw logic_error("Camera is not orthographic");
36 } // namespace Msp::Game