diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-06-16 00:03:37 -0600 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-06-16 00:08:22 -0600 |
commit | 1c9b8fa88e290ef2b66f049c99b812f378d30ee3 (patch) | |
tree | 48e0855680fb3bc411e127a5992b336c54d49e1e /libdimension-python/dimension.pyx | |
parent | 817532b031cb9a15ccf27ff66d8031b31abce200 (diff) | |
download | dimension-1c9b8fa88e290ef2b66f049c99b812f378d30ee3.tar.xz |
Use types for command-line options, and support --quality.
Diffstat (limited to 'libdimension-python/dimension.pyx')
-rw-r--r-- | libdimension-python/dimension.pyx | 9 |
1 files changed, 8 insertions, 1 deletions
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): |