diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-08-29 10:17:31 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-08-29 10:17:31 +0400 |
commit | 55cacb2e63e342705e25e205c1b805956a7226bd (patch) | |
tree | 62820bf08ca9d810dc04bfd8d19af83a177d7e8d /source/blender/blenlib | |
parent | 167182613d01ba308eba4a77828e7b061559ae4b (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')
-rw-r--r-- | source/blender/blenlib/BLI_callbacks.h | 8 |
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, |