The Battle for Wesnoth  1.17.6+dev
Namespaces | Macros | Functions | Variables
draw_manager.cpp File Reference
#include "draw_manager.hpp"
#include "draw.hpp"
#include "exceptions.hpp"
#include "log.hpp"
#include "gui/core/top_level_drawable.hpp"
#include "preferences/general.hpp"
#include "sdl/rect.hpp"
#include "video.hpp"
#include <SDL2/SDL_rect.h>
#include <SDL2/SDL_timer.h>
#include <algorithm>
#include <vector>
#include <map>
Include dependency graph for draw_manager.cpp:

Go to the source code of this file.

Namespaces

 video
 
 draw_manager
 A global draw management interface.
 

Macros

#define ERR_DM   LOG_STREAM(err, log_draw_man)
 
#define WRN_DM   LOG_STREAM(warn, log_draw_man)
 
#define LOG_DM   LOG_STREAM(info, log_draw_man)
 
#define DBG_DM   LOG_STREAM(debug, log_draw_man)
 

Functions

void video::render_screen ()
 
static void draw_manager::update ()
 
static void draw_manager::layout ()
 
static void draw_manager::render ()
 
static bool draw_manager::expose ()
 
static void draw_manager::wait_for_vsync ()
 
static void draw_manager::tidy_drawables ()
 
void draw_manager::invalidate_region (const rect &region)
 Mark a region of the screen as requiring redraw. More...
 
void draw_manager::invalidate_all ()
 Mark the entire screen as requiring redraw. More...
 
void draw_manager::sparkle ()
 Ensure that everything which needs to be drawn is drawn. More...
 
int draw_manager::get_frame_length ()
 Returns the length of one display frame, in milliseconds. More...
 
void draw_manager::register_drawable (gui2::top_level_drawable *tld)
 Register a top-level drawable. More...
 
void draw_manager::deregister_drawable (gui2::top_level_drawable *tld)
 Remove a top-level drawable from the drawing stack. More...
 
void draw_manager::raise_drawable (gui2::top_level_drawable *tld)
 Raise a TLD to the top of the drawing stack. More...
 

Variables

static lg::log_domain log_draw_man ("draw/manager")
 

Macro Definition Documentation

◆ DBG_DM

#define DBG_DM   LOG_STREAM(debug, log_draw_man)

◆ ERR_DM

#define ERR_DM   LOG_STREAM(err, log_draw_man)

◆ LOG_DM

#define LOG_DM   LOG_STREAM(info, log_draw_man)

Definition at line 35 of file draw_manager.cpp.

◆ WRN_DM

#define WRN_DM   LOG_STREAM(warn, log_draw_man)

Definition at line 34 of file draw_manager.cpp.

Referenced by draw_manager::deregister_drawable(), and draw_manager::expose().

Variable Documentation

◆ log_draw_man

lg::log_domain log_draw_man("draw/manager")
static