Skip to content

Commit 3e85498

Browse files
committed
added back python bindings for vec4
1 parent ce1a8e8 commit 3e85498

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Qor/bindings/PythonBindings.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,8 @@ namespace Scripting
694694

695695
float vec3_length(glm::vec3& v) { return v.length(); }
696696
void vec3_normalize(glm::vec3& v) { glm::normalize(v); }
697+
float vec4_length(glm::vec4& v) { return v.length(); }
698+
void vec4_normalize(glm::vec4& v) { glm::normalize(v); }
697699

698700
float get_x(glm::vec3& v) { return v.x; }
699701
float get_y(glm::vec3& v) { return v.y; }
@@ -1043,8 +1045,8 @@ namespace Scripting
10431045
.def(boost::python::self -= boost::python::self)
10441046
.def(boost::python::self *= boost::python::self)
10451047
.def(boost::python::self *= float())
1046-
//.def("length", &glm::length<float>)
1047-
//.def("normalize", &glm::normalize<float>)
1048+
.def("length", &vec4_length)
1049+
.def("normalize", &vec4_normalize)
10481050
;
10491051

10501052
boost::python::class_<Color>("Color")

0 commit comments

Comments
 (0)