1 #ifndef __tile_h 2 #define __tile_h 3 4 // =========================================================================== 5 // 6 // The tile-class stores the pixmap of a single tile. It actually has the 7 // depth of 2 bit only, since (in an extension to a bitmap) it is contructed 8 // of 4 colors to achieve a 3D effect. 9 // The actual color has to be added by a rectangle in a different plane on the 10 // screen (with the base-pixel allocated from the desired Color-instance. 11 // 12 // =========================================================================== 13 14 class Tile { 15 friend class Port; 16 17 public: 18 Tile( class Port *p, class ScalableFont *font_info, int id ); 19 ~Tile(); 20 21 private: 22 void CopyImage8( class Port *p, int id ); 23 void CopyImage16( class Port *p, int id ); 24 void CopyImage32( class Port *p, int id ); 25 26 Display *display; 27 Pixmap pixmap; 28 29 public: 30 static void init_used_syms(int n); 31 private: 32 static int used_syms[]; // ids of the character, that are really used 33 }; 34 35 #endif 36