render_slices.h
changeset 18 86f2e5b7191b
parent 17 8e8b56b0e0f5
child 19 d18606bb6f20
--- a/render_slices.h	Mon Jun 09 03:15:34 2008 +0300
+++ b/render_slices.h	Mon Jun 09 18:58:39 2008 +0300
@@ -60,7 +60,7 @@
 /*
  * The render_buf for the render_slice_info with the given index value contains
  * the full information for the next row of the render_info render. Returns a
- * bitwise-AND of the SLICE_* flags, or -1 for an error:
+ * bitwise-OR of the SLICE_* flags, or -1 for an error:
  *
  * Valid return values:
  *  zero
@@ -85,7 +85,7 @@
 /*
  * Process a completed row and generate output in the PNG format (how that is
  * handled depends on the render given to render_slices_alloc/init). Returns a
- * bitwise-AND of the SLICE_* flags, or -1 for an error:
+ * bitwise-OR of the SLICE_* flags, or -1 for an error:
  *
  * Valid return values :
  *  zero
@@ -106,6 +106,12 @@
 int render_slices_process_row (struct render_slices *ctx);
 
 /*
+ * Signifiy that the render has been completed. This will flush out buffered
+ * output data.
+ */
+int render_slices_done (struct render_slices *ctx);
+
+/*
  * Free a render_slices. The rendering may or may not be complete.
  */
 void render_slices_free (struct render_slices *ctx);