A class to manage automatic restoration of the render target. More...
#include <draw.hpp>
Public Member Functions | |
render_target_setter (const texture &t) | |
~render_target_setter () | |
Private Attributes | |
texture | target_ |
::rect | viewport_ |
::rect | clip_ |
A class to manage automatic restoration of the render target.
It will also cache and restore the current viewport.
This can be constructed on its own, or the draw::set_render_target() utility function can be used.
|
explicit |
Definition at line 628 of file draw.cpp.
References clip_, video::force_render_target(), video::get_render_target(), renderer(), video::reset_render_target(), t, target_, viewport_, and WRN_D.
draw::render_target_setter::~render_target_setter | ( | ) |
Definition at line 652 of file draw.cpp.
References sdl::empty_rect, video::force_render_target(), renderer(), and WRN_D.
|
private |
Definition at line 478 of file draw.hpp.
Referenced by render_target_setter().
|
private |
Definition at line 476 of file draw.hpp.
Referenced by render_target_setter().
|
private |
Definition at line 477 of file draw.hpp.
Referenced by render_target_setter().