aboutsummaryrefslogtreecommitdiff
path: root/engines/neverhood/palette.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/neverhood/palette.h')
-rw-r--r--engines/neverhood/palette.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/neverhood/palette.h b/engines/neverhood/palette.h
index 961b4ac909..b29d77181b 100644
--- a/engines/neverhood/palette.h
+++ b/engines/neverhood/palette.h
@@ -32,11 +32,26 @@ class Palette : public Entity {
public:
// Default constructor with black palette
Palette(NeverhoodEngine *vm);
+ // Create from existing palette
+ Palette(NeverhoodEngine *vm, byte *palette);
+ // Create from resource with filename
+ Palette(NeverhoodEngine *vm, const char *filename);
+ // Create from resource with fileHash
+ Palette(NeverhoodEngine *vm, uint32 fileHash);
~Palette();
+ void usePalette();
+ void addPalette(const char *filename, int toIndex, int count, int fromIndex);
+ void addPalette(uint32 fileHash, int toIndex, int count, int fromIndex);
+ void startFadeToBlack(int counter);
+ void startFadeToWhite(int counter);
protected:
int _status;
byte *_palette;
+ int _palCounter;
+ byte _fadeToR, _fadeToG, _fadeToB;
+ int _fadeStep;
void update();
+ void fadeColor(byte *rgb, byte toR, byte toG, byte toB);
};
} // End of namespace Neverhood