1 //////////////////////////////////////////////////////////////////////////////// 2 // 3 // File: LoadPalette.h 4 // 5 // Date: December 1999 6 // 7 // Author: Daniel Switkin 8 // 9 // Copyright 2003 (c) by Daniel Switkin. This file is made publically available 10 // under the BSD license, with the stipulations that this complete header must 11 // remain at the top of the file indefinitely, and credit must be given to the 12 // original author in any about box using this software. 13 // 14 //////////////////////////////////////////////////////////////////////////////// 15 16 #ifndef LOAD_PALETTE_H 17 #define LOAD_PALETTE_H 18 19 #include <SupportDefs.h> 20 21 class LoadPalette { 22 public: 23 LoadPalette(); 24 uint32 ColorForIndex(int index); 25 void SetColor(int index, uint8 red, uint8 green, uint8 blue); 26 27 int size, size_in_bits; 28 int backgroundindex, transparentindex; 29 bool usetransparent; 30 31 private: 32 uint32 data[256]; 33 }; 34 35 #endif 36 37