A class to manage automatic restoration of the clipping region. More...
#include <draw.hpp>
Public Member Functions | |
clip_setter (const SDL_Rect &clip) | |
~clip_setter () | |
Private Attributes | |
SDL_Rect | c_ |
bool | clip_enabled_ |
A class to manage automatic restoration of the clipping region.
This can be constructed on its own, or one of the utility functions override_clip() and reduce_clip() can be used. Constructing a clip_setter or using override_clip() will completely override the current clipping area. To intersect with the current clipping area in stead, use reduce_clip().
|
explicit |
Definition at line 482 of file draw.cpp.
References draw::force_clip().
draw::clip_setter::~clip_setter | ( | ) |
Definition at line 488 of file draw.cpp.
References draw::disable_clip(), and draw::force_clip().