Dye Class Reference
#include <dye.h>
List of all members.
Detailed Description
Class for dispatching pixel-recoloring amongst several palettes.
Definition at line 57 of file dye.h.
|
Public Member Functions |
| Dye (const std::string &dye) |
| Creates a set of palettes based on the given string.
|
| ~Dye () |
| Destroys the associated palettes.
|
void | update (int color[3]) const |
| Modifies a pixel color.
|
Static Public Member Functions |
static void | instantiate (std::string &target, const std::string &palettes) |
| Fills the blank in a dye placeholder with some palette names.
|
Private Attributes |
DyePalette * | mDyePalettes [7] |
| The order of the palettes, as well as their uppercase letter, is:.
|
Constructor & Destructor Documentation
Dye::Dye |
( |
const std::string & |
dye |
) |
|
Creates a set of palettes based on the given string.
The parts of string are separated by semi-colons. Each part starts by an uppercase letter, followed by a colon and then a palette name.
Definition at line 124 of file dye.cpp.
Destroys the associated palettes.
Definition at line 169 of file dye.cpp.
Member Function Documentation
void Dye::update |
( |
int |
color[3] |
) |
const |
Modifies a pixel color.
Definition at line 175 of file dye.cpp.
void Dye::instantiate |
( |
std::string & |
target, |
|
|
const std::string & |
palettes | |
|
) |
| | [static] |
Fills the blank in a dye placeholder with some palette names.
Definition at line 197 of file dye.cpp.
Member Data Documentation
The order of the palettes, as well as their uppercase letter, is:.
Red, Green, Yellow, Blue, Magenta, White (or rather gray).
Definition at line 92 of file dye.h.
The documentation for this class was generated from the following files: