getBeerreturntrue/bindings.cpp

20 lines
435 B
C++

#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include "gamematrix.h"
#include "raylib.h"
#include "rlgl.h"
namespace py = pybind11;
PYBIND11_MODULE(gamematrix, m) {
m.doc() = "gamematrix library exposed to Python";
m.def("matmul", &gameMatrix::matmul);
m.def("translate", [](double x, double y, double z) {
return gameMatrix::translate({x, y, z});
});
m.def("rot3D", &gameMatrix::rot3D);
}