From b3a06f62e6bee76f52f9ea00be14381b5f786de7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 15 Jul 2019 12:45:35 +0200 Subject: [PATCH] python: expose the new Matrix4::perspectiveProjection() overload. --- src/python/magnum/math.matrix.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/python/magnum/math.matrix.h b/src/python/magnum/math.matrix.h index 0f7835a..f231f4f 100644 --- a/src/python/magnum/math.matrix.h +++ b/src/python/magnum/math.matrix.h @@ -619,6 +619,9 @@ template void matrices( .def_static("perspective_projection", [](Radd fov, T aspectRatio, T near, T far) { return Math::Matrix4::perspectiveProjection(Math::Rad(fov), aspectRatio, near, far); }, "3D perspective projection matrix", py::arg("fov"), py::arg("aspect_ratio"), py::arg("near"), py::arg("far")) + .def_static("perspective_projection", + static_cast(*)(const Math::Vector2&, const Math::Vector2&, T, T)>(&Math::Matrix4::perspectiveProjection), + "3D off-center perspective projection matrix", py::arg("bottom_left"), py::arg("top_right"), py::arg("near"), py::arg("far")) .def_static("look_at", &Math::Matrix4::lookAt, "Matrix oriented towards a specific point", py::arg("eye"), py::arg("target"), py::arg("up")) .def_static("from", static_cast(*)(const Math::Matrix3x3&, const Math::Vector3&)>(&Math::Matrix4::from),