From fbd8786777528617d5760412f2da5b0157b13a3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 4 Oct 2024 23:58:23 +0200 Subject: [PATCH] Adapt to Vector getter signature changes. Not adapting to the GlyphCache deprecation yet, this is just to make it compile on a deprecated build at least. --- src/python/magnum/math.vector.h | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/python/magnum/math.vector.h b/src/python/magnum/math.vector.h index 7f6cc0b..0495dd6 100644 --- a/src/python/magnum/math.vector.h +++ b/src/python/magnum/math.vector.h @@ -432,11 +432,11 @@ template void vector2(py::class_>& c) { /* Properties */ .def_property("x", - static_cast::*)() const>(&Math::Vector2::x), + static_cast::*)() const>(&Math::Vector2::x), [](Math::Vector2& self, T value) { self.x() = value; }, "X component") .def_property("y", - static_cast::*)() const>(&Math::Vector2::y), + static_cast::*)() const>(&Math::Vector2::y), [](Math::Vector2& self, T value) { self.y() = value; }, "Y component"); } @@ -473,28 +473,28 @@ template void vector3(py::class_>& c) { /* Properties */ .def_property("x", - static_cast::*)() const>(&Math::Vector3::x), + static_cast::*)() const>(&Math::Vector3::x), [](Math::Vector3& self, T value) { self.x() = value; }, "X component") .def_property("y", - static_cast::*)() const>(&Math::Vector3::y), + static_cast::*)() const>(&Math::Vector3::y), [](Math::Vector3& self, T value) { self.y() = value; }, "Y component") .def_property("z", - static_cast::*)() const>(&Math::Vector3::z), + static_cast::*)() const>(&Math::Vector3::z), [](Math::Vector3& self, T value) { self.z() = value; }, "Z component") .def_property("r", - static_cast::*)() const>(&Math::Vector3::r), + static_cast::*)() const>(&Math::Vector3::r), [](Math::Vector3& self, T value) { self.r() = value; }, "R component") .def_property("g", - static_cast::*)() const>(&Math::Vector3::g), + static_cast::*)() const>(&Math::Vector3::g), [](Math::Vector3& self, T value) { self.g() = value; }, "G component") .def_property("b", - static_cast::*)() const>(&Math::Vector3::b), + static_cast::*)() const>(&Math::Vector3::b), [](Math::Vector3& self, T value) { self.b() = value; }, "B component") @@ -517,36 +517,36 @@ template void vector4(py::class_>& c) { /* Properties */ .def_property("x", - static_cast::*)() const>(&Math::Vector4::x), + static_cast::*)() const>(&Math::Vector4::x), [](Math::Vector4& self, T value) { self.x() = value; }, "X component") .def_property("y", - static_cast::*)() const>(&Math::Vector4::y), + static_cast::*)() const>(&Math::Vector4::y), [](Math::Vector4& self, T value) { self.y() = value; }, "Y component") .def_property("z", - static_cast::*)() const>(&Math::Vector4::z), + static_cast::*)() const>(&Math::Vector4::z), [](Math::Vector4& self, T value) { self.z() = value; }, "Z component") .def_property("w", - static_cast::*)() const>(&Math::Vector4::w), + static_cast::*)() const>(&Math::Vector4::w), [](Math::Vector4& self, T value) { self.w() = value; }, "W component") .def_property("r", - static_cast::*)() const>(&Math::Vector4::r), + static_cast::*)() const>(&Math::Vector4::r), [](Math::Vector4& self, T value) { self.r() = value; }, "R component") .def_property("g", - static_cast::*)() const>(&Math::Vector4::g), + static_cast::*)() const>(&Math::Vector4::g), [](Math::Vector4& self, T value) { self.g() = value; }, "G component") .def_property("b", - static_cast::*)() const>(&Math::Vector4::b), + static_cast::*)() const>(&Math::Vector4::b), [](Math::Vector4& self, T value) { self.b() = value; }, "B component") .def_property("a", - static_cast::*)() const>(&Math::Vector4::a), + static_cast::*)() const>(&Math::Vector4::a), [](Math::Vector4& self, T value) { self.a() = value; }, "A component")