Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/blender_session.h
| Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | void reset_session(BL::BlendData& b_data, | ||||
| BL::Scene& b_scene); | BL::Scene& b_scene); | ||||
| /* offline render */ | /* offline render */ | ||||
| void render(); | void render(); | ||||
| void bake(BL::Object& b_object, | void bake(BL::Object& b_object, | ||||
| const string& pass_type, | const string& pass_type, | ||||
| const int custom_flag, | const int custom_flag, | ||||
| const int object_id, | const int bake_width, | ||||
| BL::BakePixel& pixel_array, | const int bake_height); | ||||
| const size_t num_pixels, | |||||
| const int depth, | |||||
| float pixels[]); | |||||
| void write_render_result(BL::RenderResult& b_rr, | void write_render_result(BL::RenderResult& b_rr, | ||||
| BL::RenderLayer& b_rlay, | BL::RenderLayer& b_rlay, | ||||
| RenderTile& rtile); | RenderTile& rtile); | ||||
| void write_render_tile(RenderTile& rtile); | void write_render_tile(RenderTile& rtile); | ||||
| void read_render_tile(RenderTile& rtile); | |||||
| /* update functions are used to update display buffer only after sample was rendered | /* update functions are used to update display buffer only after sample was rendered | ||||
| * only needed for better visual feedback */ | * only needed for better visual feedback */ | ||||
| void update_render_result(BL::RenderResult& b_rr, | void update_render_result(BL::RenderResult& b_rr, | ||||
| BL::RenderLayer& b_rlay, | BL::RenderLayer& b_rlay, | ||||
| RenderTile& rtile); | RenderTile& rtile); | ||||
| void update_render_tile(RenderTile& rtile, bool highlight); | void update_render_tile(RenderTile& rtile, bool highlight); | ||||
| ▲ Show 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | public: | ||||
| static int start_resumable_chunk; | static int start_resumable_chunk; | ||||
| static int end_resumable_chunk; | static int end_resumable_chunk; | ||||
| protected: | protected: | ||||
| void do_write_update_render_result(BL::RenderResult& b_rr, | void do_write_update_render_result(BL::RenderResult& b_rr, | ||||
| BL::RenderLayer& b_rlay, | BL::RenderLayer& b_rlay, | ||||
| RenderTile& rtile, | RenderTile& rtile, | ||||
| bool do_update_only); | bool do_update_only); | ||||
| void do_write_update_render_tile(RenderTile& rtile, bool do_update_only, bool highlight); | void do_write_update_render_tile(RenderTile& rtile, | ||||
| bool do_update_only, | |||||
| bool do_read_only, | |||||
| bool highlight); | |||||
| int builtin_image_frame(const string &builtin_name); | int builtin_image_frame(const string &builtin_name); | ||||
| void builtin_image_info(const string &builtin_name, | void builtin_image_info(const string &builtin_name, | ||||
| void *builtin_data, | void *builtin_data, | ||||
| ImageMetaData& metadata); | ImageMetaData& metadata); | ||||
| bool builtin_image_pixels(const string &builtin_name, | bool builtin_image_pixels(const string &builtin_name, | ||||
| void *builtin_data, | void *builtin_data, | ||||
| unsigned char *pixels, | unsigned char *pixels, | ||||
| Show All 15 Lines | |||||