A top-level drawable item (TLD), such as a window.
A global draw management interface.
void invalidate_region(const rect ®ion)
Mark a region of the screen as requiring redraw.
void request_extra_render_pass()
Request an extra render pass.
void register_drawable(top_level_drawable *tld)
Register a top-level drawable.
void deregister_drawable(top_level_drawable *tld)
Remove a top-level drawable from the drawing stack.
void invalidate_all()
Mark the entire screen as requiring redraw.
void sparkle()
Ensure that everything which needs to be drawn is drawn.
std::chrono::milliseconds get_frame_length()
Returns the length of one display frame, in milliseconds.
void raise_drawable(top_level_drawable *tld)
Raise a TLD to the top of the drawing stack.
Contains the SDL_Rect helper code.
An abstract description of a rectangle with integer coordinates.