summaryrefslogtreecommitdiff
path: root/src/functions.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-09-09 10:13:17 +0000
committerrubidium <rubidium@openttd.org>2007-09-09 10:13:17 +0000
commit65f9a0f21a1379107683f7b5f2fc0c82f22a4cb6 (patch)
tree43502b2af33d4a35c7e2e2fbd6f29b3cc60b4ba8 /src/functions.h
parentef4d248325114b5cc3fb864f7105b44a7784be50 (diff)
downloadopenttd-65f9a0f21a1379107683f7b5f2fc0c82f22a4cb6.tar.xz
(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman.
Diffstat (limited to 'src/functions.h')
-rw-r--r--src/functions.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/functions.h b/src/functions.h
index bcefb13c6..c3e7a3a70 100644
--- a/src/functions.h
+++ b/src/functions.h
@@ -103,7 +103,18 @@ StringID RealAllocateName(const char *name, byte skip, bool check_double);
void ConvertNameArray();
/* misc functions */
+/**
+ * Mark a tile given by its coordinate dirty for repaint.
+ *
+ * @ingroup dirty
+ */
void MarkTileDirty(int x, int y);
+
+/**
+ * Mark a tile given by its index dirty for repaint.
+ *
+ * @ingroup dirty
+ */
void MarkTileDirtyByTile(TileIndex tile);
void InvalidateWindow(WindowClass cls, WindowNumber number);
void InvalidateWindowWidget(WindowClass cls, WindowNumber number, byte widget_index);
@@ -124,6 +135,12 @@ bool ScrollMainWindowTo(int x, int y, bool instant = false);
void DrawSprite(SpriteID img, SpriteID pal, int x, int y);
bool EnsureNoVehicle(TileIndex tile);
bool EnsureNoVehicleOnGround(TileIndex tile);
+
+/**
+ * Mark all viewports dirty for repaint.
+ *
+ * @ingroup dirty
+ */
void MarkAllViewportsDirty(int left, int top, int right, int bottom);
void ShowCostOrIncomeAnimation(int x, int y, int z, Money cost);
void ShowFeederIncomeAnimation(int x, int y, int z, Money cost);