Add a functor fill mode to GfxFillPolygon

This commit is contained in:
Jonathan G Rennison
2022-05-19 00:12:17 +01:00
parent 9fddfdeccf
commit 981104e308
3 changed files with 10 additions and 2 deletions

View File

@@ -288,8 +288,11 @@ enum FillRectMode {
FILLRECT_OPAQUE, ///< Fill rectangle with a single colour
FILLRECT_CHECKER, ///< Draw only every second pixel, used for greying-out
FILLRECT_RECOLOUR, ///< Apply a recolour sprite to the screen content
FILLRECT_FUNCTOR, ///< Apply a functor to a line of pixels
};
typedef void GfxFillRectModeFunctor(void *pixel, int count);
/** Palettes OpenTTD supports. */
enum PaletteType {
PAL_DOS, ///< Use the DOS palette.