equal
deleted
inserted
replaced
147 uint8 a, r, g, b; ///< colour channels in BE order |
147 uint8 a, r, g, b; ///< colour channels in BE order |
148 #else |
148 #else |
149 uint8 b, g, r, a; ///< colour channels in LE order |
149 uint8 b, g, r, a; ///< colour channels in LE order |
150 #endif /* TTD_ENDIAN == TTD_BIG_ENDIAN */ |
150 #endif /* TTD_ENDIAN == TTD_BIG_ENDIAN */ |
151 |
151 |
152 operator uint32 () { return *(uint32 *)this; } |
152 operator uint32 () const { return *(uint32 *)this; } |
153 }; |
153 }; |
154 |
154 |
155 enum FontSize { |
155 enum FontSize { |
156 FS_NORMAL, |
156 FS_NORMAL, |
157 FS_SMALL, |
157 FS_SMALL, |
214 |
214 |
215 enum StringColorFlags { |
215 enum StringColorFlags { |
216 IS_PALETTE_COLOR = 0x100, ///< color value is already a real palette color index, not an index of a StringColor |
216 IS_PALETTE_COLOR = 0x100, ///< color value is already a real palette color index, not an index of a StringColor |
217 }; |
217 }; |
218 |
218 |
|
219 /** Define the operation GfxFillRect performs */ |
|
220 enum FillRectMode { |
|
221 FILLRECT_OPAQUE, ///< Fill rectangle with a single color |
|
222 FILLRECT_CHECKER, ///< Draw only every second pixel, used for greying-out |
|
223 FILLRECT_RECOLOR, ///< Apply a recolor sprite to the screen content |
|
224 }; |
|
225 |
219 #endif /* GFX_TYPE_H */ |
226 #endif /* GFX_TYPE_H */ |