Mask (MASK) modification. More...
#include <image_modifications.hpp>
Public Member Functions | |
| mask_modification (const surface &mask, int x, int y) | |
| virtual void | operator() (surface &src) const override |
| Applies the image-path modification on the specified surface. More... | |
| const surface & | get_mask () const |
| int | get_x () const |
| int | get_y () const |
Public Member Functions inherited from image::modification | |
| virtual | ~modification () |
| virtual int | priority () const |
| Specifies the priority of the modification. More... | |
Private Attributes | |
| surface | mask_ |
| int | x_ |
| int | y_ |
Additional Inherited Members | |
Static Public Member Functions inherited from image::modification | |
| static modification_queue | decode (const std::string &) |
| Decodes modifications from a modification string. More... | |
Mask (MASK) modification.
Definition at line 393 of file image_modifications.hpp.
|
inline |
Definition at line 396 of file image_modifications.hpp.
|
inline |
Definition at line 401 of file image_modifications.hpp.
References mask_.
|
inline |
Definition at line 406 of file image_modifications.hpp.
References x_.
|
inline |
Definition at line 411 of file image_modifications.hpp.
References y_.
|
overridevirtual |
Applies the image-path modification on the specified surface.
Implements image::modification.
Definition at line 383 of file image_modifications.cpp.
References mask_surface(), sdl_blit(), and src.
|
private |
Definition at line 417 of file image_modifications.hpp.
Referenced by get_mask().
|
private |
Definition at line 418 of file image_modifications.hpp.
Referenced by get_x().
|
private |
Definition at line 419 of file image_modifications.hpp.
Referenced by get_y().