#include "draw_manager.hpp"
#include "draw.hpp"
#include "exceptions.hpp"
#include "log.hpp"
#include "gui/core/top_level_drawable.hpp"
#include "sdl/rect.hpp"
#include "utils/general.hpp"
#include "video.hpp"
#include <thread>
#include <algorithm>
#include <vector>
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 ®ion) |
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::request_extra_render_pass () |
Request an extra render pass. More... | |
void | draw_manager::sparkle () |
Ensure that everything which needs to be drawn is drawn. More... | |
std::chrono::milliseconds | 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") |
#define DBG_DM LOG_STREAM(debug, log_draw_man) |
Definition at line 33 of file draw_manager.cpp.
#define ERR_DM LOG_STREAM(err, log_draw_man) |
Definition at line 30 of file draw_manager.cpp.
#define LOG_DM LOG_STREAM(info, log_draw_man) |
Definition at line 32 of file draw_manager.cpp.
#define WRN_DM LOG_STREAM(warn, log_draw_man) |
Definition at line 31 of file draw_manager.cpp.
|
static |