diff options
Diffstat (limited to 'libdimension-python/dimension.pxd')
-rw-r--r-- | libdimension-python/dimension.pxd | 15 |
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() |