Recolor (RC/TC/PAL) modification. More...
#include <image_modifications.hpp>
Public Member Functions | |
rc_modification () | |
Default constructor. More... | |
rc_modification (const std::map< Uint32, Uint32 > &recolor_map) | |
RC-map based constructor. More... | |
virtual surface | operator() (const surface &src) const |
Applies the image-path modification on the specified surface. More... | |
virtual int | priority () const |
Specifies the priority of the modification. More... | |
bool | no_op () const |
const std::map< Uint32, Uint32 > & | map () const |
std::map< Uint32, Uint32 > & | map () |
Public Member Functions inherited from image::modification | |
virtual | ~modification () |
Private Attributes | |
std::map< Uint32, Uint32 > | rc_map_ |
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... | |
Recolor (RC/TC/PAL) modification.
It is used not only for color-range-based recoloring ("~RC(magenta>teal)") but also for team-color-based color range selection and recoloring ("~TC(3,magenta)") and palette switches ("~PAL(000000,005000 > FFFFFF,FF00FF)").
Definition at line 115 of file image_modifications.hpp.
|
inline |
Default constructor.
Definition at line 121 of file image_modifications.hpp.
|
inline |
RC-map based constructor.
recolor_map | The palette switch map. |
Definition at line 128 of file image_modifications.hpp.
|
inline |
Definition at line 138 of file image_modifications.hpp.
References rc_map_.
|
inline |
Definition at line 139 of file image_modifications.hpp.
References rc_map_.
|
inline |
Definition at line 136 of file image_modifications.hpp.
References rc_map_.
Applies the image-path modification on the specified surface.
Implements image::modification.
Definition at line 150 of file image_modifications.cpp.
References recolor_image().
|
inlinevirtual |
Specifies the priority of the modification.
Reimplemented from image::modification.
Definition at line 134 of file image_modifications.hpp.
|
private |
Definition at line 142 of file image_modifications.hpp.