Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-08-29 10:17:31 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-08-29 10:17:31 +0400
commit55cacb2e63e342705e25e205c1b805956a7226bd (patch)
tree62820bf08ca9d810dc04bfd8d19af83a177d7e8d /source/blender/blenlib/BLI_callbacks.h
parent167182613d01ba308eba4a77828e7b061559ae4b (diff)
Add callback for starting a render-job
We had complete/cancel, but no matching init for rendering, render_pre/post callbacks aren't always usable.
Diffstat (limited to 'source/blender/blenlib/BLI_callbacks.h')
-rw-r--r--source/blender/blenlib/BLI_callbacks.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_callbacks.h b/source/blender/blenlib/BLI_callbacks.h
index b93cd9e9eeb..2f963cfac51 100644
--- a/source/blender/blenlib/BLI_callbacks.h
+++ b/source/blender/blenlib/BLI_callbacks.h
@@ -29,12 +29,20 @@ struct bContext;
struct Main;
struct ID;
+/**
+ * Common suffix uses:
+ * - ``_PRE/_POST``:
+ * For handling discrete non-interactive events.
+ * - ``_INIT/_COMPLETE/_CANCEL``:
+ * For handling jobs (which may in turn cause other handlers to be called).
+ */
typedef enum {
BLI_CB_EVT_FRAME_CHANGE_PRE,
BLI_CB_EVT_FRAME_CHANGE_POST,
BLI_CB_EVT_RENDER_PRE,
BLI_CB_EVT_RENDER_POST,
BLI_CB_EVT_RENDER_STATS,
+ BLI_CB_EVT_RENDER_INIT,
BLI_CB_EVT_RENDER_COMPLETE,
BLI_CB_EVT_RENDER_CANCEL,
BLI_CB_EVT_LOAD_PRE,