summaryrefslogtreecommitdiffstats
path: root/libdimension-python
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-05-30 15:07:35 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-05-30 15:07:35 -0400
commit77f880207d4fc37f82299d78d04be13623d9da0a (patch)
tree1da61bc0b17e803a14ef42b068b089a262302f53 /libdimension-python
parent2b546944a1f0c5646936f2ab047345769e3a2471 (diff)
downloaddimension-77f880207d4fc37f82299d78d04be13623d9da0a.tar.xz
scene: Use pool.
Diffstat (limited to 'libdimension-python')
-rw-r--r--libdimension-python/dimension.pxd2
-rw-r--r--libdimension-python/dimension.pyx2
2 files changed, 2 insertions, 2 deletions
diff --git a/libdimension-python/dimension.pxd b/libdimension-python/dimension.pxd
index 0d862ae..d3c0c9e 100644
--- a/libdimension-python/dimension.pxd
+++ b/libdimension-python/dimension.pxd
@@ -414,7 +414,7 @@ cdef extern from "../libdimension/dimension.h":
dmnsn_timer bounding_timer
dmnsn_timer render_timer
- dmnsn_scene *dmnsn_new_scene()
+ dmnsn_scene *dmnsn_new_scene(dmnsn_pool *pool)
void dmnsn_delete_scene(dmnsn_scene *scene)
void dmnsn_ray_trace(dmnsn_scene *scene)
diff --git a/libdimension-python/dimension.pyx b/libdimension-python/dimension.pyx
index 24ec4bd..c84d21a 100644
--- a/libdimension-python/dimension.pyx
+++ b/libdimension-python/dimension.pyx
@@ -1511,7 +1511,7 @@ cdef class Scene:
lights -- the list of lights in the scene
camera -- the camera for the scene
"""
- self._scene = dmnsn_new_scene()
+ self._scene = dmnsn_new_scene(_get_pool())
self._scene.canvas = canvas._canvas
DMNSN_INCREF(self._scene.canvas)