Cycles Bake
[blender-staging.git] / intern / cycles / blender / blender_session.h
index d30e3eda870cd2a2af2cf46edd396b198a5bdc5a..0e44493d674fc7669f4ac9ca0c3514fadb4fb160 100644 (file)
@@ -20,6 +20,7 @@
 #include "device.h"
 #include "scene.h"
 #include "session.h"
+#include "bake.h"
 
 #include "util_vector.h"
 
@@ -51,6 +52,8 @@ public:
        /* offline render */
        void render();
 
+       void bake(BL::Object b_object, const string& pass_type, BL::BakePixel pixel_array, int num_pixels, int depth, float pixels[]);
+
        void write_render_result(BL::RenderResult b_rr, BL::RenderLayer b_rlay, RenderTile& rtile);
        void write_render_tile(RenderTile& rtile);