Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/blender_session.h
| Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | public: | ||||
| /* offline render */ | /* offline render */ | ||||
| void render(BL::Depsgraph &b_depsgraph); | void render(BL::Depsgraph &b_depsgraph); | ||||
| void bake(BL::Depsgraph &b_depsgrah, | void bake(BL::Depsgraph &b_depsgrah, | ||||
| BL::Object &b_object, | 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::RenderLayer &b_rlay, RenderTile &rtile); | void write_render_result(BL::RenderLayer &b_rlay, 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::RenderLayer &b_rlay, RenderTile &rtile); | void update_render_result(BL::RenderLayer &b_rlay, RenderTile &rtile); | ||||
| void update_render_tile(RenderTile &rtile, bool highlight); | void update_render_tile(RenderTile &rtile, bool highlight); | ||||
| /* interactive updates */ | /* interactive updates */ | ||||
| void synchronize(BL::Depsgraph &b_depsgraph); | void synchronize(BL::Depsgraph &b_depsgraph); | ||||
| ▲ Show 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | public: | ||||
| static bool print_render_stats; | static bool print_render_stats; | ||||
| protected: | protected: | ||||
| void stamp_view_layer_metadata(Scene *scene, const string &view_layer_name); | void stamp_view_layer_metadata(Scene *scene, const string &view_layer_name); | ||||
| void do_write_update_render_result(BL::RenderLayer &b_rlay, | void do_write_update_render_result(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_data, ImageMetaData &metadata); | void builtin_image_info(const string &builtin_name, void *builtin_data, 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, | ||||
| const size_t pixels_size, | const size_t pixels_size, | ||||
| const bool associate_alpha, | const bool associate_alpha, | ||||
| Show All 22 Lines | |||||