From 1c9b8fa88e290ef2b66f049c99b812f378d30ee3 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 16 Jun 2011 00:03:37 -0600 Subject: Use types for command-line options, and support --quality. --- libdimension-python/dimension.pyx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'libdimension-python/dimension.pyx') diff --git a/libdimension-python/dimension.pyx b/libdimension-python/dimension.pyx index fa57691..b19db18 100644 --- a/libdimension-python/dimension.pyx +++ b/libdimension-python/dimension.pyx @@ -432,7 +432,7 @@ cdef class Canvas: """A rendering target.""" cdef dmnsn_canvas *_canvas - def __init__(self, size_t width, size_t height): + def __init__(self, width, height): """ Create a Canvas. @@ -1292,6 +1292,13 @@ cdef class Scene: def __set__(self, n): self._scene.nthreads = n + property quality: + """The render quality.""" + def __get__(self): + return self._scene.quality + def __set__(self, q): + self._scene.quality = q + property bounding_timer: """The Timer for building the bounding hierarchy.""" def __get__(self): -- cgit v1.2.3