aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/palette.h
diff options
context:
space:
mode:
authorFilippos Karapetis2010-01-05 01:37:57 +0000
committerFilippos Karapetis2010-01-05 01:37:57 +0000
commitd99aa0f12634bed7b5101b4b5a64f50ee744961b (patch)
tree037401495ebf794eaa3b7386b49ee03dbe1cdac1 /engines/sci/graphics/palette.h
parent2f1a909696838533758acdb026b1fd9c3631d6f0 (diff)
downloadscummvm-rg350-d99aa0f12634bed7b5101b4b5a64f50ee744961b.tar.gz
scummvm-rg350-d99aa0f12634bed7b5101b4b5a64f50ee744961b.tar.bz2
scummvm-rg350-d99aa0f12634bed7b5101b4b5a64f50ee744961b.zip
More renaming
svn-id: r47009
Diffstat (limited to 'engines/sci/graphics/palette.h')
-rw-r--r--engines/sci/graphics/palette.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/engines/sci/graphics/palette.h b/engines/sci/graphics/palette.h
new file mode 100644
index 0000000000..94f5007468
--- /dev/null
+++ b/engines/sci/graphics/palette.h
@@ -0,0 +1,66 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * $URL$
+ * $Id$
+ *
+ */
+
+#ifndef SCI_GRAPHICS_PALETTE_H
+#define SCI_GRAPHICS_PALETTE_H
+
+#include "sci/graphics/helpers.h"
+
+namespace Sci {
+
+class Screen;
+class SciPalette {
+public:
+ SciPalette(ResourceManager *resMan, Screen *screen, bool autoSetPalette = true);
+ ~SciPalette();
+
+ void createFromData(byte *data, Palette *paletteOut);
+ bool setAmiga();
+ void setEGA();
+ bool setFromResource(GuiResourceId resourceId, uint16 flag);
+ void set(Palette *sciPal, uint16 flag);
+ void merge(Palette *pFrom, Palette *pTo, uint16 flag);
+ uint16 matchColor(Palette *pPal, byte r, byte g, byte b);
+ void getSys(Palette *pal);
+
+ void setOnScreen();
+
+ void setFlag(uint16 fromColor, uint16 toColor, uint16 flag);
+ void unsetFlag(uint16 fromColor, uint16 toColor, uint16 flag);
+ void setIntensity(uint16 fromColor, uint16 toColor, uint16 intensity, bool setPalette);
+ bool animate(byte fromColor, byte toColor, int speed);
+
+ Palette _sysPalette;
+
+private:
+ Screen *_screen;
+ ResourceManager *_resMan;
+
+ Common::Array<PalSchedule> _schedules;
+};
+
+} // End of namespace Sci
+
+#endif