summaryrefslogtreecommitdiffstats
path: root/libdimension-python/dimension.pxd
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-06-16 21:40:18 -0600
committerTavian Barnes <tavianator@gmail.com>2011-06-16 21:42:18 -0600
commit415c34935c58c05b5ca0e99a10198f871a90edf4 (patch)
tree7589888d26bbb4a7e711df020305ef4bff682aba /libdimension-python/dimension.pxd
parenta2267a685e45593da8687f6dc5fd65e76d0259d3 (diff)
downloaddimension-415c34935c58c05b5ca0e99a10198f871a90edf4.tar.xz
Implement Progress class.
Diffstat (limited to 'libdimension-python/dimension.pxd')
-rw-r--r--libdimension-python/dimension.pxd15
1 files changed, 15 insertions, 0 deletions
diff --git a/libdimension-python/dimension.pxd b/libdimension-python/dimension.pxd
index b73b99c..6ac6319 100644
--- a/libdimension-python/dimension.pxd
+++ b/libdimension-python/dimension.pxd
@@ -64,6 +64,16 @@ cdef extern from "../libdimension/dimension.h":
void dmnsn_array_remove(dmnsn_array *array, size_t i)
void dmnsn_array_apply(dmnsn_array *array, dmnsn_callback_fn *callback)
+ ############
+ # Progress #
+ ############
+
+ ctypedef struct dmnsn_progress
+
+ int dmnsn_finish_progress(dmnsn_progress *progress)
+ double dmnsn_get_progress(dmnsn_progress *progress)
+ void dmnsn_wait_progress(dmnsn_progress *progress, double prog)
+
##########
# Timers #
##########
@@ -178,6 +188,7 @@ cdef extern from "../libdimension/dimension.h":
int dmnsn_png_optimize_canvas(dmnsn_canvas *canvas)
int dmnsn_png_write_canvas(dmnsn_canvas *canvas, FILE *file)
+ dmnsn_progress *dmnsn_png_write_canvas_async(dmnsn_canvas *canvas, FILE *file)
int dmnsn_gl_optimize_canvas(dmnsn_canvas *canvas)
int dmnsn_gl_write_canvas(dmnsn_canvas *canvas)
@@ -377,3 +388,7 @@ cdef extern from "../libdimension/dimension.h":
void dmnsn_delete_scene(dmnsn_scene *scene)
void dmnsn_raytrace_scene(dmnsn_scene *scene)
+ dmnsn_progress *dmnsn_raytrace_scene_async(dmnsn_scene *scene)
+
+cdef extern from "platform.h":
+ unsigned int dmnsn_terminal_width()