Scale (BLIT) modification. More...
#include <image_modifications.hpp>
Public Member Functions | |
blit_modification (const surface &surf, int x, int y) | |
virtual void | operator() (surface &src) const override |
Applies the image-path modification on the specified surface. More... | |
const surface & | get_surface () 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 | surf_ |
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... | |
Scale (BLIT) modification.
Definition at line 355 of file image_modifications.hpp.
|
inline |
Definition at line 358 of file image_modifications.hpp.
|
inline |
Definition at line 363 of file image_modifications.hpp.
References surf_.
Referenced by BOOST_AUTO_TEST_CASE().
|
inline |
Definition at line 368 of file image_modifications.hpp.
References x_.
Referenced by BOOST_AUTO_TEST_CASE().
|
inline |
Definition at line 373 of file image_modifications.hpp.
References y_.
Referenced by BOOST_AUTO_TEST_CASE().
|
overridevirtual |
Applies the image-path modification on the specified surface.
Implements image::modification.
Definition at line 366 of file image_modifications.cpp.
References sdl_blit(), and src.
|
private |
Definition at line 379 of file image_modifications.hpp.
Referenced by get_surface().
|
private |
Definition at line 380 of file image_modifications.hpp.
Referenced by get_x().
|
private |
Definition at line 381 of file image_modifications.hpp.
Referenced by get_y().