erebus
diff liberebus/src/erebus.h @ 32:b1fc96c71bcc
- lambert BRDF importance sampling
- UI + commandline arguments
- font rendering for showing status/progress
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 07 Jun 2014 13:36:36 +0300 |
parents | d38e13d6063c |
children | db8a90307386 |
line diff
1.1 --- a/liberebus/src/erebus.h Sat Jun 07 09:14:17 2014 +0300 1.2 +++ b/liberebus/src/erebus.h Sat Jun 07 13:36:36 2014 +0300 1.3 @@ -14,6 +14,13 @@ 1.4 ERB_NUM_OPTIONS 1.5 }; 1.6 1.7 +struct erb_render_status { 1.8 + long progress_percent; // derived from the data below 1.9 + long blocks, max_blocks; // completed pixel blocks in current sample pass 1.10 + long samples, max_samples; // completed samples in current frame 1.11 + long frames, max_frames; // completed frames in multi-frame job 1.12 +}; 1.13 + 1.14 #ifdef __cplusplus 1.15 extern "C" { 1.16 #endif 1.17 @@ -36,6 +43,7 @@ 1.18 int erb_render_rect(struct erebus *ctx, int x, int y, int width, int height, long timeout); 1.19 1.20 int erb_get_progress(struct erebus *ctx); 1.21 +int erb_get_status(struct erebus *ctx, struct erb_render_status *stat); 1.22 1.23 int erb_load_scene(struct erebus *ctx, const char *fname); 1.24