Routines to set up the display, scroll and zoom the map. More...
#include "arrow.hpp"
#include "cursor.hpp"
#include "display.hpp"
#include "fake_unit_manager.hpp"
#include "game_preferences.hpp"
#include "gettext.hpp"
#include "halo.hpp"
#include "language.hpp"
#include "log.hpp"
#include "marked-up_text.hpp"
#include "map/map.hpp"
#include "map/label.hpp"
#include "minimap.hpp"
#include "overlay.hpp"
#include "play_controller.hpp"
#include "reports.hpp"
#include "resources.hpp"
#include "synced_context.hpp"
#include "team.hpp"
#include "terrain/builder.hpp"
#include "text.hpp"
#include "time_of_day.hpp"
#include "tooltips.hpp"
#include "tod_manager.hpp"
#include "units/unit.hpp"
#include "units/animation_component.hpp"
#include "units/drawer.hpp"
#include "whiteboard/manager.hpp"
#include "show_dialog.hpp"
#include "gui/dialogs/loadscreen.hpp"
#include <SDL_image.h>
#include <cmath>
Go to the source code of this file.
Macros | |
#define | ERR_DP LOG_STREAM(err, log_display) |
#define | LOG_DP LOG_STREAM(info, log_display) |
#define | DBG_DP LOG_STREAM(debug, log_display) |
Enumerations | |
enum | { MAX_BORDER = 3, BITS_FOR_LAYER_GROUP = 4, BITS_FOR_Y = 10, BITS_FOR_X_PARITY = 1, BITS_FOR_LAYER = 8, BITS_FOR_X_OVER_2 = 9 } |
Functions | |
static const std::string & | get_direction (size_t n) |
static void | draw_panel (CVideo &video, const theme::panel &panel, std::vector< std::shared_ptr< gui::button >> &) |
static void | draw_label (CVideo &video, surface target, const theme::label &label) |
static void | draw_background (surface screen, const SDL_Rect &area, const std::string &image) |
Variables | |
static lg::log_domain | log_display ("display") |
Routines to set up the display, scroll and zoom the map.
Definition in file display.cpp.
#define DBG_DP LOG_STREAM(debug, log_display) |
Definition at line 64 of file display.cpp.
Referenced by display::create_buttons(), display::draw_init(), draw_panel(), display::invalidate_all(), display::layout_buttons(), and display::screenshot().
#define ERR_DP LOG_STREAM(err, log_display) |
Definition at line 62 of file display.cpp.
Referenced by display::refresh_report(), display::reinit_flags_for_side(), display::render_image(), display::screenshot(), display::scroll_to_tile(), and display::scroll_to_tiles().
#define LOG_DP LOG_STREAM(info, log_display) |
Definition at line 63 of file display.cpp.
Referenced by display::init_flags_for_side_internal(), display::redraw_everything(), and display::set_zoom().
anonymous enum |
Enumerator | |
---|---|
MAX_BORDER | |
BITS_FOR_LAYER_GROUP | |
BITS_FOR_Y | |
BITS_FOR_X_PARITY | |
BITS_FOR_LAYER | |
BITS_FOR_X_OVER_2 |
Definition at line 1273 of file display.cpp.
|
static |
Definition at line 1647 of file display.cpp.
References sdl::create_rect(), image::get_image(), surface::null(), and sdl_blit().
Referenced by display::draw_init().
|
static |
Definition at line 1525 of file display.cpp.
References tooltips::add_tooltip(), surface::assign(), font::draw_text(), theme::label::font_rgb(), theme::label::font_rgb_set(), theme::label::font_size(), image::get_image(), theme::label::icon(), theme::object::location(), font::NORMAL_COLOR, surface::null(), display::red(), scale_surface(), display::screen_area(), sdl_blit(), surf, theme::label::text(), and update_rect().
Referenced by display::draw_all_panels().
|
static |
Definition at line 1498 of file display.cpp.
References surface::assign(), CVideo::blit_surface(), blit_surface(), DBG_DP, theme::object::get_id(), image::get_image(), theme::panel::image(), theme::object::location(), surface::null(), resources::screen, display::screen_area(), surf, tile_surface(), and update_rect().
Referenced by display::draw_all_panels().
|
static |
Definition at line 1010 of file display.cpp.
Referenced by display::get_fog_shroud_images().
|
static |