The Battle for Wesnoth  1.19.7+dev
Namespaces | Functions
spritesheet_generator.cpp File Reference
#include "utils/spritesheet_generator.hpp"
#include "config.hpp"
#include "filesystem.hpp"
#include "log.hpp"
#include "picture.hpp"
#include "sdl/point.hpp"
#include "sdl/rect.hpp"
#include "sdl/surface.hpp"
#include "sdl/utils.hpp"
#include "serialization/binary_or_text.hpp"
#include "utils/optimer.hpp"
#include <SDL2/SDL_image.h>
#include <algorithm>
#include <future>
#include <iostream>
#include <numeric>
#include <filesystem>
Include dependency graph for spritesheet_generator.cpp:

Go to the source code of this file.

Namespaces

 image
 Functions to load and save images from/to disk.
 

Functions

void image::build_spritesheet_from (const std::string &entry_point)
 

Variable Documentation

◆ dst

rect dst

Location on the final composed sheet.

Definition at line 73 of file spritesheet_generator.cpp.

Referenced by pathfind::a_star_search(), ai::ai_default_rca::move_to_targets_phase::access_points(), unit_animator::add_animation(), BF_decode(), BF_encode(), draw::blit(), ai::readonly_context_impl::calculate_moves(), ai::ai_default_rca::move_to_targets_phase::choose_move(), font::pango_text::copy_layout_properties(), copy_persistent(), default_map_generator_job::default_generate_map(), ai::ai_default_rca::get_healing_phase::evaluate(), gui2::window::expose(), fix_rename_command(), draw::flipped(), cave_map_generator::cave_map_generator_job::generate_chambers(), replay_helper::get_attack(), image::get_hexed(), unit_animation::particle::get_overlaped_hex(), unit_frame::get_overlaped_hex(), get_surface_portion(), handle_unit_move(), unit_animator::has_animation(), game_lua_kernel::intf_find_path(), intf_find_path(), game_lua_kernel::intf_teleport(), game_display::invalidate_unit_after_move(), markup::make_link(), unit_map::move(), ai::ai_default_rca::move_to_targets_phase::move_group(), image::prep_minimap_for_rendering(), playturn_network_adapter::read(), read_config(), unit_animation::particle::redraw(), unit_frame::redraw(), unit_drawer::redraw_unit(), unit_animator::replace_anim_if_invalid(), rotate_90_surface(), rotate_any_surface(), scale_surface(), scale_surface_legacy(), scale_surface_sharp(), scale_surface_xbrz(), display::scroll(), sdl_blit(), game_display::set_attack_indicator(), ai::formula_ai::shortest_path_calculator(), tokenizer::skip_comment(), draw::smooth_shaded(), config::splice_children(), unit_animation::start_animation(), SYNCED_COMMAND_HANDLER_FUNCTION(), draw::tiled(), draw::tiled_highres(), lua_common::tstring_concat_aux(), replay::undo_cut(), unicode_cast(), unit_animation::update_parameters(), and game_events::WML_HANDLER_FUNCTION().

◆ filename

std::string filename

Filename.

Definition at line 67 of file spritesheet_generator.cpp.

Referenced by lua_fileops::canonical_path(), gui2::dialogs::file_dialog::check_filename(), savegame::savegame::check_filename(), server_base::coro_send_file(), coro_send_file_userspace(), filesystem::delete_file(), schema_validation::schema_validator::detect_link_cycles(), play_controller::do_consolesave(), play_controller::hotkey_handler::expand_autosaves(), editor::context_manager::expand_open_maps_menu(), play_controller::hotkey_handler::expand_quickreplay(), gui2::dialogs::game_save::game_save(), gui2::dialogs::game_save_message::game_save_message(), gui2::dialogs::game_save_oos::game_save_oos(), filesystem::get_binary_dir_location(), filesystem::get_binary_file_location(), preprocessor_data::get_chunk(), get_file_code(), filesystem::get_independent_binary_file_path(), filesystem::get_next_filename(), wesnothd::game::get_replay_filename(), savegame::save_index_class::get_saves_list(), filesystem::get_short_wml_path(), game_launcher::init_lua_script(), filesystem::is_bzip2_file(), filesystem::is_cfg(), filesystem::is_compressed_file(), filesystem::is_gzip_file(), filesystem::is_map(), filesystem::is_mask(), play_controller::hotkey_handler::load_autosave(), playsingle_controller::hotkey_handler::load_autosave(), terrain_builder::load_images(), editor::context_manager::load_map(), plugins_manager::load_plugin(), gui2::dialogs::make_screenshot(), editor::map_context::map_context(), mask_surface(), savegame::create_save_info::operator()(), sound::play_new_music(), schema_validation::schema_validator::read_config_file(), terrain_builder::rebuild_terrain(), gui2::dialogs::modal_dialog::register_image(), lua_fileops::resolve_filename(), editor::context_manager::revert_map(), savegame::savegame::save_game(), play_controller::save_game_auto(), savegame::savegame::save_game_automatic(), image::save_image(), wesnothd::game::save_replay(), play_controller::save_replay_auto(), gui2::dialogs::screenshot_notification::save_screenshot(), editor::mouse_action_unit::set_unit_mouse_overlay(), editor::item_palette::setup_item(), editor::terrain_palette::setup_item(), editor::unit_palette::setup_item(), prefs::show_wesnothd_server_search(), editor::start(), game_launcher::start_editor(), filesystem::to_asset_path(), gui2::dialogs::mp_match_history::update_display(), display::update_fps_label(), editor::wrap_exc(), and savegame::savegame::write_game_to_disk().

◆ src

rect src

Non-transparent portion of the surface to compose.

Definition at line 70 of file spritesheet_generator.cpp.

Referenced by pathfind::a_star_search(), unit_animator::add_animation(), BF_decode(), BF_encode(), xbrz::bilinearScale(), BOOST_AUTO_TEST_CASE(), ai::readonly_context_impl::calculate_moves(), filesystem::copy_file(), font::pango_text::copy_layout_properties(), copy_persistent(), cut_surface(), default_map_generator_job::default_generate_map(), gui::textbox::draw_contents(), gui2::window::expose(), terrain_filterimpl::filter_area(), terrain_filterimpl::filter_final(), terrain_filterimpl::filter_special_loc(), terrain_filterimpl::filter_xy(), fix_rename_command(), replay_helper::get_attack(), unit_animation::particle::get_overlaped_hex(), unit_frame::get_overlaped_hex(), get_surface_portion(), unit_animator::has_animation(), markup::img(), impl_sndsrc_set(), impl_source_get(), impl_source_set(), game_lua_kernel::intf_find_cost_map(), game_lua_kernel::intf_find_path(), intf_find_path(), game_lua_kernel::intf_find_reach(), game_lua_kernel::intf_find_vision_range(), game_display::invalidate_unit_after_move(), load_fake_units(), main(), wesnothd::make_add_diff(), wesnothd::make_change_diff(), wesnothd::make_delete_diff(), unit_map::move(), events::mouse_handler::move_action(), xbrz::nearestNeighborScale(), xbrz::nearestNeighborScaleOverSource(), image::rc_modification::operator()(), image::fl_modification::operator()(), image::rotate_modification::operator()(), image::gs_modification::operator()(), image::crop_transparency_modification::operator()(), image::bw_modification::operator()(), image::sepia_modification::operator()(), image::negative_modification::operator()(), image::plot_alpha_modification::operator()(), image::wipe_alpha_modification::operator()(), image::adjust_alpha_modification::operator()(), image::adjust_channels_modification::operator()(), image::crop_modification::operator()(), image::blit_modification::operator()(), image::mask_modification::operator()(), image::light_modification::operator()(), image::scale_modification::operator()(), image::xbrz_modification::operator()(), image::o_modification::operator()(), image::cs_modification::operator()(), image::blend_modification::operator()(), image::bl_modification::operator()(), image::background_modification::operator()(), image::swap_modification::operator()(), push_source(), read_config(), unit_animation::particle::redraw(), unit_frame::redraw(), unit_animator::replace_anim_if_invalid(), rotate_any_surface(), xbrz::scale(), display::scroll(), sdl_blit(), game_display::set_attack_indicator(), ai::formula_ai::shortest_path_calculator(), config::splice_children(), unit_animation::start_animation(), SYNCED_COMMAND_HANDLER_FUNCTION(), t_translation::terrain_matches(), lua_common::tstring_concat_aux(), unit_animation::update_parameters(), and game_events::WML_HANDLER_FUNCTION().

◆ surf

surface surf