display.cpp File Reference

Routines to set up the display, scroll and zoom the map. More...

#include "global.hpp"
#include "actions.hpp"
#include "cursor.hpp"
#include "display.hpp"
#include "events.hpp"
#include "font.hpp"
#include "game_config.hpp"
#include "gettext.hpp"
#include "hotkeys.hpp"
#include "language.hpp"
#include "log.hpp"
#include "marked-up_text.hpp"
#include "minimap.hpp"
#include "pathfind.hpp"
#include "preferences.hpp"
#include "sdl_utils.hpp"
#include "theme.hpp"
#include "tooltips.hpp"
#include "util.hpp"
#include "SDL_image.h"
#include <algorithm>
#include <cassert>
#include <cmath>
#include <iostream>
#include <sstream>

Include dependency graph for display.cpp:

Go to the source code of this file.

Defines

#define ERR_DP   LOG_STREAM(err, display)
#define INFO_DP   LOG_STREAM(info, display)
#define DBG_DP   LOG_STREAM(debug, display)

Functions

static const std::string & get_direction (size_t n)
static void draw_panel (CVideo &video, const theme::panel &panel, std::vector< gui::button > &buttons)
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

const int DefaultZoom = 72
const int SmallZoom = 36
const int MinZoom = 4
const int MaxZoom = 200
size_t sunset_delay = 0
size_t sunset_timer = 0
bool benchmark = false


Detailed Description

Routines to set up the display, scroll and zoom the map.

Definition in file display.cpp.


Define Documentation

#define DBG_DP   LOG_STREAM(debug, display)

Definition at line 53 of file display.cpp.

#define ERR_DP   LOG_STREAM(err, display)

Definition at line 51 of file display.cpp.

#define INFO_DP   LOG_STREAM(info, display)

Definition at line 52 of file display.cpp.


Function Documentation

static void draw_background ( surface  screen,
const SDL_Rect &  area,
const std::string &  image 
) [static]

Definition at line 910 of file display.cpp.

References image::get_image(), display::h(), surface::null(), and display::w().

Referenced by display::draw_init(), and gui::show_title().

static void draw_label ( CVideo video,
surface  target,
const theme::label label 
) [static]

static void draw_panel ( CVideo video,
const theme::panel panel,
std::vector< gui::button > &  buttons 
) [static]

static const std::string& get_direction ( size_t  n  )  [static]

Definition at line 520 of file display.cpp.

Referenced by display::get_fog_shroud_graphics().


Variable Documentation

bool benchmark = false [static]

const int DefaultZoom = 72 [static]

Definition at line 60 of file display.cpp.

Referenced by display::set_default_zoom().

const int MaxZoom = 200 [static]

Definition at line 65 of file display.cpp.

Referenced by display::bounds_check_position(), and display::set_zoom().

const int MinZoom = 4 [static]

Definition at line 64 of file display.cpp.

Referenced by display::bounds_check_position(), and display::set_zoom().

const int SmallZoom = 36 [static]

Definition at line 61 of file display.cpp.

size_t sunset_delay = 0 [static]

Definition at line 66 of file display.cpp.

Referenced by display::flip(), and display::sunset().

size_t sunset_timer = 0 [static]

Definition at line 67 of file display.cpp.

Referenced by display::flip().


Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs