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.
This commit is contained in:
2014-08-29 16:17:31 +10:00
parent 167182613d
commit 55cacb2e63
3 changed files with 13 additions and 0 deletions

View File

@@ -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,