The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Namespaces | Macros | Functions | Variables
video.cpp File Reference

Video-testprogram, standalone. More...

#include "global.hpp"
#include "font.hpp"
#include "floating_label.hpp"
#include "image.hpp"
#include "log.hpp"
#include "preferences.hpp"
#include "sdl/utils.hpp"
#include "sdl/rect.hpp"
#include "sdl/window.hpp"
#include "video.hpp"
#include "sdl/gpu.hpp"
#include "display.hpp"
#include <vector>
#include <map>
#include <algorithm>
#include <assert.h>
Include dependency graph for video.cpp:

Go to the source code of this file.

Namespaces

 video2
 

Macros

#define LOG_DP   LOG_STREAM(info, log_display)
 
#define ERR_DP   LOG_STREAM(err, log_display)
 

Functions

static unsigned int get_flags (unsigned int flags)
 
void video2::trigger_full_redraw ()
 
surfaceget_video_surface ()
 
SDL_Rect screen_area ()
 
void update_rect (size_t x, size_t y, size_t w, size_t h)
 
void update_rect (const SDL_Rect &rect_value)
 
static int sdl_display_index (sdl::twindow *window)
 

Variables

static lg::log_domain log_display ("display")
 
std::list< events::sdl_handler * > video2::draw_layers
 

Detailed Description

Video-testprogram, standalone.

Definition in file video.cpp.

Macro Definition Documentation

#define ERR_DP   LOG_STREAM(err, log_display)

Definition at line 42 of file video.cpp.

Referenced by CVideo::initSDL().

#define LOG_DP   LOG_STREAM(info, log_display)

Definition at line 41 of file video.cpp.

Referenced by CVideo::~CVideo().

Function Documentation

static unsigned int get_flags ( unsigned int  flags)
static

Definition at line 52 of file video.cpp.

Referenced by CVideo::init_window().

surface& get_video_surface ( )

Definition at line 130 of file video.cpp.

References dummy_screen_surface.

SDL_Rect screen_area ( )
static int sdl_display_index ( sdl::twindow window)
static

Definition at line 568 of file video.cpp.

Referenced by CVideo::get_available_resolutions().

void update_rect ( size_t  x,
size_t  y,
size_t  w,
size_t  h 
)

Definition at line 140 of file video.cpp.

References sdl::create_rect(), and update_rect().

Referenced by update_rect().

void update_rect ( const SDL_Rect &  rect_value)

Definition at line 145 of file video.cpp.

Variable Documentation

lg::log_domain log_display("display")
static