diff options
Diffstat (limited to 'src/texmapcolouriser.h')
-rw-r--r-- | src/texmapcolouriser.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/texmapcolouriser.h b/src/texmapcolouriser.h new file mode 100644 index 0000000..22d5d25 --- /dev/null +++ b/src/texmapcolouriser.h @@ -0,0 +1,22 @@ +#ifndef TEXMAPCOLOURISER_H +#define TEXMAPCOLOURISER_H +#include <game.h> + +// Colourises an IA8 texture +class dTexMapColouriser_c { + public: + dTexMapColouriser_c(); + ~dTexMapColouriser_c(); + + void resetAndClear(); + void setTexMap(nw4r::lyt::TexMap *tm); + void applyAlso(nw4r::lyt::TexMap *tm); + void colourise(int h, int s, int l); + + private: + nw4r::lyt::TexMap *texmap; + u16 *original; + u16 *mine; +}; + +#endif /* TEXMAPCOLOURISER_H */ |