X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fpython%2Fprimitives.c;h=cbd2442ac5b3cc3d6b518809e58177fa8ed3a15c;hb=99fdfae36ca02e0da16690b3eeb2904f906180ba;hp=55e80d069b3f1247de3c7347466a1a17b25048aa;hpb=89bf852c497d296477ac788f00a06b11e5502fa9;p=swftools.git diff --git a/lib/python/primitives.c b/lib/python/primitives.c index 55e80d0..cbd2442 100644 --- a/lib/python/primitives.c +++ b/lib/python/primitives.c @@ -247,6 +247,14 @@ typedef struct { MATRIX matrix; } MatrixObject; +PyObject* f_Matrix2(MATRIX* m) +{ + PyObject*self = (PyObject*)PyObject_New(MatrixObject, &MatrixClass); + MatrixObject*matrix = (MatrixObject*)self; + matrix->matrix = *m; + return self; +} + PyObject* f_Matrix(PyObject* _self, PyObject* args, PyObject* kwargs) { PyObject*self = (PyObject*)PyObject_New(MatrixObject, &MatrixClass);