summaryrefslogtreecommitdiff
path: root/src/gfx_type.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-08-01 09:34:34 +0000
committerrubidium <rubidium@openttd.org>2008-08-01 09:34:34 +0000
commitc5a4e90338c4f66dfd75497b5137b4fd0a7da867 (patch)
tree2ff51cc080d35422ab3d268a167cf4863270082e /src/gfx_type.h
parent47592b92883416e782df54604bbe3156e3aa9daf (diff)
downloadopenttd-c5a4e90338c4f66dfd75497b5137b4fd0a7da867.tar.xz
(svn r13910) -Document: string drawing related functions and types (Alberth)
Diffstat (limited to 'src/gfx_type.h')
-rw-r--r--src/gfx_type.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gfx_type.h b/src/gfx_type.h
index 4d5a3654a..a85a32434 100644
--- a/src/gfx_type.h
+++ b/src/gfx_type.h
@@ -11,6 +11,7 @@
#include "zoom_type.h"
typedef uint32 SpriteID; ///< The number of a sprite, without mapping bits and colortables
+
struct PalSpriteID {
SpriteID sprite;
SpriteID pal;
@@ -110,6 +111,7 @@ struct AnimCursor {
byte display_time; ///< Amount of ticks this sprite will be shown
};
+/** Collection of variables for cursor-display and -animation */
struct CursorVars {
Point pos, size, offs, delta; ///< position, size, offset from top-left, and movement
Point draw_pos, draw_size; ///< position and size bounding-box for drawing
@@ -153,6 +155,7 @@ struct Colour {
operator uint32 () const { return *(uint32 *)this; }
};
+/** Available font sizes */
enum FontSize {
FS_NORMAL,
FS_SMALL,