git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8a2a381
)
added f_Matrix2()
author
kramm
<kramm>
Thu, 30 Dec 2004 20:00:36 +0000
(20:00 +0000)
committer
kramm
<kramm>
Thu, 30 Dec 2004 20:00:36 +0000
(20:00 +0000)
lib/python/primitives.c
patch
|
blob
|
history
diff --git
a/lib/python/primitives.c
b/lib/python/primitives.c
index
55e80d0
..
cbd2442
100644
(file)
--- a/
lib/python/primitives.c
+++ b/
lib/python/primitives.c
@@
-247,6
+247,14
@@
typedef struct {
MATRIX matrix;
} MatrixObject;
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);
PyObject* f_Matrix(PyObject* _self, PyObject* args, PyObject* kwargs)
{
PyObject*self = (PyObject*)PyObject_New(MatrixObject, &MatrixClass);