summaryrefslogtreecommitdiff
path: root/src/resources/dye.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-02 21:25:21 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-02 21:25:21 +0300
commit0534847df83047f1ce2605187d45a762ffeae11e (patch)
tree92365ee5ec086b3c65f024096df9d63bd05b31d4 /src/resources/dye.h
parent4f390339f8107c376a10151a2cae889c0ec01089 (diff)
downloadmv-0534847df83047f1ce2605187d45a762ffeae11e.tar.gz
mv-0534847df83047f1ce2605187d45a762ffeae11e.tar.bz2
mv-0534847df83047f1ce2605187d45a762ffeae11e.tar.xz
mv-0534847df83047f1ce2605187d45a762ffeae11e.zip
Add const to more classes.
Diffstat (limited to 'src/resources/dye.h')
-rw-r--r--src/resources/dye.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/resources/dye.h b/src/resources/dye.h
index 7e5ba6c99..cd5e58093 100644
--- a/src/resources/dye.h
+++ b/src/resources/dye.h
@@ -44,13 +44,13 @@ class DyePalette
* The string is either a file name or a sequence of hexadecimal RGB
* values separated by ',' and starting with '#'.
*/
- DyePalette(const std::string &pallete, int8_t blockSize);
+ DyePalette(const std::string &pallete, const int8_t blockSize);
/**
* Gets a pixel color depending on its intensity. First color is
* implicitly black (0, 0, 0).
*/
- void getColor(int intensity, int color[3]) const;
+ void getColor(const int intensity, int color[3]) const;
/**
* Gets a pixel color depending on its intensity.
@@ -60,24 +60,24 @@ class DyePalette
/**
* replace colors for SDL for S dye.
*/
- void replaceSColor(uint8_t *color) const;
+ void replaceSColor(uint8_t *const color) const;
/**
* replace colors for SDL for S dye.
*/
- void replaceAColor(uint8_t *color) const;
+ void replaceAColor(uint8_t *const color) const;
/**
* replace colors for OpenGL for S dye.
*/
- void replaceSOGLColor(uint8_t *color) const;
+ void replaceSOGLColor(uint8_t *const color) const;
/**
* replace colors for OpenGL for A dye.
*/
- void replaceAOGLColor(uint8_t *color) const;
+ void replaceAOGLColor(uint8_t *const color) const;
- int hexDecode(char c);
+ static int hexDecode(const char c);
private:
struct Color