Helper class for pinning SDL surfaces into memory. More...
#include <utils.hpp>
Public Member Functions | |
surface_lock (surface &surf) | |
~surface_lock () | |
Uint32 * | pixels () |
Private Attributes | |
surface & | surface_ |
bool | locked_ |
Helper class for pinning SDL surfaces into memory.
surface_lock::surface_lock | ( | surface & | surf | ) |
surface_lock::~surface_lock | ( | ) |
|
inline |
Definition at line 444 of file utils.hpp.
References surface_.
Referenced by adjust_surface_alpha(), adjust_surface_alpha_add(), adjust_surface_color(), alpha_to_greyscale(), blend_surface(), blit_surface(), blur_alpha_surface(), blur_surface(), brighten_image(), create_image_base(), cut_surface(), flip_surface(), flop_surface(), get_non_transparent_portion(), greyscale_image(), image_empty(), in_mask_surface(), light_surface(), mask_surface(), masked_overwrite_surface(), monochrome_image(), negative_image(), put_pixel(), recolor_image(), rotate_180_surface(), rotate_90_surface(), save_image(), scale_surface(), scale_surface_nn(), scale_surface_sharp(), scale_surface_xbrz(), sepia_image(), shadow_image(), stretch_surface_horizontal(), stretch_surface_vertical(), submerge_alpha(), swap_channels_image(), tile_surface(), and wipe_alpha().
|
private |
Definition at line 447 of file utils.hpp.
Referenced by surface_lock(), and ~surface_lock().
|
private |
Definition at line 446 of file utils.hpp.
Referenced by pixels(), surface_lock(), and ~surface_lock().