File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -694,6 +694,8 @@ namespace Scripting
694
694
695
695
float vec3_length (glm::vec3& v) { return v.length (); }
696
696
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); }
697
699
698
700
float get_x (glm::vec3& v) { return v.x ; }
699
701
float get_y (glm::vec3& v) { return v.y ; }
@@ -1043,8 +1045,8 @@ namespace Scripting
1043
1045
.def (boost::python::self -= boost::python::self)
1044
1046
.def (boost::python::self *= boost::python::self)
1045
1047
.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 )
1048
1050
;
1049
1051
1050
1052
boost::python::class_<Color>(" Color" )
You can’t perform that action at this time.
0 commit comments