View3D::View3D(Layout3D &l, unsigned w, unsigned h):
layout(l),
+ width(w),
+ height(h),
pipeline(w, h)
{
pipeline.set_camera(&camera);
camera.set_up_direction(GL::Vector3(0, 0, 1));
// Y+, 60° down
camera.set_look_direction(GL::Vector3(0, 0.5, -0.866));
+ camera.set_aspect(float(width)/height);
view_all();
}