Fixed minor bugs in bindings, moved AABB implementation to own file, added boolean matrix and comparison functions to python bindings

This commit is contained in:
Sebastian Koch
2016-05-25 21:47:37 +02:00
parent e2542ecf24
commit aa6e79dc36
34 changed files with 1854 additions and 1155 deletions
+46
View File
@@ -0,0 +1,46 @@
% for enum in enums:
py::enum_<\
% for n in enum['namespaces']:
${n}::\
% endfor
${enum['name']}>(m, "${enum['name']}")
% for c in enum['constants']:
.value("${c}", \
% for n in enum['namespaces']:
${n}::\
% endfor
${c})
% endfor
.export_values();
% endfor
% for func in functions:
m.def("${func['name']}", []
(
% for p in func['parameters'][:-1]:
${p['type']} ${p['name']},
% endfor
${func['parameters'][-1]['type']} ${func['parameters'][-1]['name']}
)
{
return \
% for n in func['namespaces']:
${n}::\
% endfor
${func['name']}(\
% for p in func['parameters'][:-1]:
${p['name']}, \
% endfor
${func['parameters'][-1]['name']});
}, __doc_\
% for n in func['namespaces']:
${n}_\
% endfor
${func['name']},
% for p in func['parameters'][:-1]:
py::arg("${p['name']}"), \
% endfor
py::arg("${func['parameters'][-1]['name']}"));
% endfor