From 2e0e2cb17056892cefeefeef9e0fd693084ef71f Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 1 Jan 2013 16:15:13 +0000 Subject: Highlight currently rendering tiles This commit implements highlight of tiles which are being currently rendered for both Blender Internal and Cycles (and should be possible to use it for other external engines as well). Couple of implementation details: - Added one extra boolean flag to render engine which should be set to truth if render engine wants to highlight tiles. If so, property use_highlight_tiles should be set to True. - Render Part's ready boolena was changed by status enum, which could be NONE, IN_PROGRESS and READY. All render part with IN_PROGRESS status will be highlighted in image editor. - For external engines render part's status is filling in automatically. Initially all render parts has got NONE status, then one external engine acquire render result, corresponding part will change status to IN_PROGRESS. As soon as render result is finished, corresponding render part will change status to FINISHED This should make it easy to highlight tiles for other engines as well. --- source/blender/render/extern/include/RE_engine.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/render/extern') diff --git a/source/blender/render/extern/include/RE_engine.h b/source/blender/render/extern/include/RE_engine.h index d2ffc3a0e26..64135a16f5d 100644 --- a/source/blender/render/extern/include/RE_engine.h +++ b/source/blender/render/extern/include/RE_engine.h @@ -61,6 +61,7 @@ struct Scene; #define RE_ENGINE_DO_DRAW 4 #define RE_ENGINE_DO_UPDATE 8 #define RE_ENGINE_RENDERING 16 +#define RE_ENGINE_HIGHLIGHT_TILES 32 extern ListBase R_engines; @@ -130,5 +131,7 @@ void RE_engines_exit(void); RenderEngineType *RE_engines_find(const char *idname); +void RE_engine_get_current_tiles(struct Render *re, int *total_tiles_r, rcti **tiles_r); + #endif /* __RE_ENGINE_H__ */ -- cgit v1.2.3