The Battle for Wesnoth  1.15.2+dev
Public Member Functions | Private Attributes | List of all members
image::swap_modification Class Reference

Channel swap (SWAP). More...

#include <image_modifications.hpp>

Inheritance diagram for image::swap_modification:
Inheritance graph

Public Member Functions

 swap_modification (channel r, channel g, channel b, channel a)
 
virtual surface operator() (const surface &src) const
 Applies the image-path modification on the specified surface. More...
 
- Public Member Functions inherited from image::modification
virtual ~modification ()
 
virtual int priority () const
 Specifies the priority of the modification. More...
 

Private Attributes

channel red_
 
channel green_
 
channel blue_
 
channel alpha_
 

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...
 

Detailed Description

Channel swap (SWAP).

Definition at line 598 of file image_modifications.hpp.

Constructor & Destructor Documentation

◆ swap_modification()

image::swap_modification::swap_modification ( channel  r,
channel  g,
channel  b,
channel  a 
)
inline

Definition at line 601 of file image_modifications.hpp.

Member Function Documentation

◆ operator()()

surface image::swap_modification::operator() ( const surface src) const
virtual

Applies the image-path modification on the specified surface.

Implements image::modification.

Definition at line 601 of file image_modifications.cpp.

References swap_channels_image().

Member Data Documentation

◆ alpha_

channel image::swap_modification::alpha_
private

Definition at line 607 of file image_modifications.hpp.

◆ blue_

channel image::swap_modification::blue_
private

Definition at line 606 of file image_modifications.hpp.

◆ green_

channel image::swap_modification::green_
private

Definition at line 605 of file image_modifications.hpp.

◆ red_

channel image::swap_modification::red_
private

Definition at line 604 of file image_modifications.hpp.


The documentation for this class was generated from the following files: