diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-05-20 16:34:52 -0600 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-05-20 16:34:52 -0600 |
commit | 250b980002419746fc099c7633b9600a15afb1c6 (patch) | |
tree | c146041da19654d565a6dc433eebada324fc9fb9 /libdimension-python/dimension.c | |
parent | ad716acc7fa7fd151ff96fe6d17f0ba1a3a66379 (diff) | |
download | dimension-250b980002419746fc099c7633b9600a15afb1c6.tar.xz |
Add Canvases to the Python module.
Diffstat (limited to 'libdimension-python/dimension.c')
-rw-r--r-- | libdimension-python/dimension.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libdimension-python/dimension.c b/libdimension-python/dimension.c index f47dfbc..03e2aaa 100644 --- a/libdimension-python/dimension.c +++ b/libdimension-python/dimension.c @@ -22,6 +22,7 @@ #include "Vector.h" #include "Matrix.h" #include "Color.h" +#include "Canvas.h" #include "Scene.h" static PyObject * @@ -73,6 +74,7 @@ PyInit_dimension(void) if (!dmnsn_py_init_VectorType() || !dmnsn_py_init_MatrixType() || !dmnsn_py_init_ColorType() + || !dmnsn_py_init_CanvasType() || !dmnsn_py_init_SceneType()) return NULL; @@ -104,6 +106,8 @@ PyInit_dimension(void) PyModule_AddObject(module, "Yellow", (PyObject *)&dmnsn_py_Yellow); PyModule_AddObject(module, "Cyan", (PyObject *)&dmnsn_py_Cyan); + PyModule_AddObject(module, "Canvas", (PyObject *)&dmnsn_py_CanvasType); + PyModule_AddObject(module, "Scene", (PyObject *)&dmnsn_py_SceneType); return module; |