Move BVHType and shadingsystem enums to top-level of Cycles namespace.
[blender.git] / intern / cycles / render / session.h
index 1227edf81b6f81b9e40785d5033d5adacd8e8ccc..2d29015863c05dbcf9e2b2ded6adac9d1ae27caa 100644 (file)
@@ -24,6 +24,7 @@
 #include "util_progress.h"
 #include "util_stats.h"
 #include "util_thread.h"
+#include "util_types.h"
 #include "util_vector.h"
 
 CCL_NAMESPACE_BEGIN
@@ -59,7 +60,7 @@ public:
        double reset_timeout;
        double text_timeout;
 
-       enum { OSL, SVM } shadingsystem;
+       ShadingSystem shadingsystem;
 
        SessionParams()
        {
@@ -128,7 +129,7 @@ public:
        ~Session();
 
        void start();
-       bool draw(BufferParams& params);
+       bool draw(BufferParams& params, DeviceDrawParams& draw_params);
        void wait();
 
        bool ready_to_reset();
@@ -136,6 +137,7 @@ public:
        void set_samples(int samples);
        void set_pause(bool pause);
 
+       void update_scene();
        void device_free();
 protected:
        struct DelayedReset {
@@ -147,19 +149,18 @@ protected:
 
        void run();
 
-       void update_scene();
        void update_status_time(bool show_pause = false, bool show_done = false);
 
-       void tonemap();
+       void tonemap(int sample);
        void path_trace();
        void reset_(BufferParams& params, int samples);
 
        void run_cpu();
-       bool draw_cpu(BufferParams& params);
+       bool draw_cpu(BufferParams& params, DeviceDrawParams& draw_params);
        void reset_cpu(BufferParams& params, int samples);
 
        void run_gpu();
-       bool draw_gpu(BufferParams& params);
+       bool draw_gpu(BufferParams& params, DeviceDrawParams& draw_params);
        void reset_gpu(BufferParams& params, int samples);
 
        bool acquire_tile(Device *tile_device, RenderTile& tile);