summaryrefslogtreecommitdiffstats
path: root/libdimension-python/dimension.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-05-20 16:34:52 -0600
committerTavian Barnes <tavianator@gmail.com>2011-05-20 16:34:52 -0600
commit250b980002419746fc099c7633b9600a15afb1c6 (patch)
treec146041da19654d565a6dc433eebada324fc9fb9 /libdimension-python/dimension.c
parentad716acc7fa7fd151ff96fe6d17f0ba1a3a66379 (diff)
downloaddimension-250b980002419746fc099c7633b9600a15afb1c6.tar.xz
Add Canvases to the Python module.
Diffstat (limited to 'libdimension-python/dimension.c')
-rw-r--r--libdimension-python/dimension.c4
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;