Helper class for pinning SDL surfaces into memory. More...
#include <surface.hpp>
Public Member Functions | |
surface_locker (T &surf) | |
~surface_locker () | |
pixel_t * | pixels () const |
Private Types | |
using | pixel_t = utils::const_clone_t< uint32_t, T > |
Private Attributes | |
T & | surface_ |
bool | locked_ |
Helper class for pinning SDL surfaces into memory.
Definition at line 126 of file surface.hpp.
|
private |
Definition at line 129 of file surface.hpp.
|
inline |
Definition at line 132 of file surface.hpp.
References surface_locker< T >::locked_, and surface_locker< T >::surface_.
|
inline |
Definition at line 139 of file surface.hpp.
References surface_locker< T >::locked_, and surface_locker< T >::surface_.
|
inline |
Definition at line 146 of file surface.hpp.
References surface_locker< T >::surface_.
Referenced by adjust_surface_alpha_add(), adjust_surface_color(), alpha_to_greyscale(), blend_surface(), blur_alpha_surface(), blur_surface(), brighten_image(), cut_surface(), flip_surface(), flop_surface(), get_non_transparent_portion(), greyscale_image(), in_mask_surface(), light_surface(), mask_surface(), monochrome_image(), negative_image(), image::adjust_alpha_modification::operator()(), image::adjust_channels_modification::operator()(), image::o_modification::operator()(), recolor_image(), rotate_180_surface(), rotate_90_surface(), rotate_any_surface(), scale_surface(), scale_surface_legacy(), scale_surface_sharp(), scale_surface_xbrz(), sepia_image(), shadow_image(), swap_channels_image(), and wipe_alpha().
|
private |
Definition at line 150 of file surface.hpp.
Referenced by surface_locker< T >::surface_locker(), and surface_locker< T >::~surface_locker().
|
private |
Definition at line 149 of file surface.hpp.
Referenced by surface_locker< T >::pixels(), surface_locker< T >::surface_locker(), and surface_locker< T >::~surface_locker().