| OpenTTD
    | 
Types related to the graphics and/or input devices. More...
Go to the source code of this file.
| Data Structures | |
| struct | PalSpriteID | 
| Combination of a palette sprite and a 'real' sprite.  More... | |
| struct | AnimCursor | 
| A single sprite of a list of animated cursors.  More... | |
| struct | CursorVars | 
| Collection of variables for cursor-display and -animation.  More... | |
| struct | DrawPixelInfo | 
| Data about how and where to blit pixels.  More... | |
| union | Colour | 
| Structure to access the alpha, red, green, and blue channels from a 32 bit number.  More... | |
| struct | SubSprite | 
| Used to only draw a part of the sprite.  More... | |
| struct | EnumPropsT< Colours > | 
| struct | Palette | 
| Information about the currently used palette.  More... | |
| Typedefs | |
| typedef uint32 | SpriteID | 
| The number of a sprite, without mapping bits and colourtables. | |
| typedef uint32 | PaletteID | 
| The number of the palette. | |
| typedef uint32 | CursorID | 
| The number of the cursor (sprite) | |
| Enumerations | |
| enum | WindowKeyCodes { WKC_SHIFT = 0x8000, WKC_CTRL = 0x4000, WKC_ALT = 0x2000, WKC_META = 0x1000, WKC_GLOBAL_HOTKEY = 0x0800, WKC_SPECIAL_KEYS = WKC_SHIFT | WKC_CTRL | WKC_ALT | WKC_META | WKC_GLOBAL_HOTKEY, WKC_NONE = 0, WKC_ESC = 1, WKC_BACKSPACE = 2, WKC_INSERT = 3, WKC_DELETE = 4, WKC_PAGEUP = 5, WKC_PAGEDOWN = 6, WKC_END = 7, WKC_HOME = 8, WKC_LEFT = 9, WKC_UP = 10, WKC_RIGHT = 11, WKC_DOWN = 12, WKC_RETURN = 13, WKC_TAB = 14, WKC_SPACE = 32, WKC_F1 = 33, WKC_F2 = 34, WKC_F3 = 35, WKC_F4 = 36, WKC_F5 = 37, WKC_F6 = 38, WKC_F7 = 39, WKC_F8 = 40, WKC_F9 = 41, WKC_F10 = 42, WKC_F11 = 43, WKC_F12 = 44, WKC_BACKQUOTE = 45, WKC_PAUSE = 46, WKC_NUM_DIV = 138, WKC_NUM_MUL = 139, WKC_NUM_MINUS = 140, WKC_NUM_PLUS = 141, WKC_NUM_ENTER = 142, WKC_NUM_DECIMAL = 143, WKC_SLASH = 144, WKC_SEMICOLON = 145, WKC_EQUALS = 146, WKC_L_BRACKET = 147, WKC_BACKSLASH = 148, WKC_R_BRACKET = 149, WKC_SINGLEQUOTE = 150, WKC_COMMA = 151, WKC_PERIOD = 152, WKC_MINUS = 153 } | 
| enum | FontSize { FS_NORMAL, FS_SMALL, FS_LARGE, FS_MONO, FS_END, FS_BEGIN = FS_NORMAL } | 
| Available font sizes.  More... | |
| enum | Colours { COLOUR_BEGIN, COLOUR_DARK_BLUE = COLOUR_BEGIN, COLOUR_PALE_GREEN, COLOUR_PINK, COLOUR_YELLOW, COLOUR_RED, COLOUR_LIGHT_BLUE, COLOUR_GREEN, COLOUR_DARK_GREEN, COLOUR_BLUE, COLOUR_CREAM, COLOUR_MAUVE, COLOUR_PURPLE, COLOUR_ORANGE, COLOUR_BROWN, COLOUR_GREY, COLOUR_WHITE, COLOUR_END, INVALID_COLOUR = 0xFF } | 
| enum | TextColour { TC_BEGIN = 0x00, TC_FROMSTRING = 0x00, TC_BLUE = 0x00, TC_SILVER = 0x01, TC_GOLD = 0x02, TC_RED = 0x03, TC_PURPLE = 0x04, TC_LIGHT_BROWN = 0x05, TC_ORANGE = 0x06, TC_GREEN = 0x07, TC_YELLOW = 0x08, TC_DARK_GREEN = 0x09, TC_CREAM = 0x0A, TC_BROWN = 0x0B, TC_WHITE = 0x0C, TC_LIGHT_BLUE = 0x0D, TC_GREY = 0x0E, TC_DARK_BLUE = 0x0F, TC_BLACK = 0x10, TC_END, TC_INVALID = 0xFF, TC_IS_PALETTE_COLOUR = 0x100, TC_NO_SHADE = 0x200 } | 
| Colour of the strings, see _string_colourmap in table/string_colours.h or docs/ottd-colourtext-palette.png.  More... | |
| enum | PaletteAnimationSizes { PALETTE_ANIM_SIZE = 28, PALETTE_ANIM_START = 227 } | 
| Defines a few values that are related to animations using palette changes.  More... | |
| enum | FillRectMode { FILLRECT_OPAQUE, FILLRECT_CHECKER, FILLRECT_RECOLOUR } | 
| Define the operation GfxFillRect performs.  More... | |
| enum | PaletteType { PAL_DOS, PAL_WINDOWS, PAL_AUTODETECT, MAX_PAL = 2 } | 
| Palettes OpenTTD supports.  More... | |
| enum | SpriteType { ST_NORMAL = 0, ST_MAPGEN = 1, ST_FONT = 2, ST_RECOLOUR = 3, ST_INVALID = 4 } | 
| Types of sprites that might be loaded.  More... | |
| enum | Support8bpp { S8BPP_NONE = 0, S8BPP_SYSTEM, S8BPP_HARDWARE } | 
| Modes for 8bpp support.  More... | |
| Functions | |
| assert_compile (sizeof(Colour)==sizeof(uint32)) | |
| Variables | |
| static const uint | MILLISECONDS_PER_TICK = 30 | 
| The number of milliseconds per game tick. | |
Types related to the graphics and/or input devices.
Definition in file gfx_type.h.
| enum FillRectMode | 
Define the operation GfxFillRect performs.
| 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. | 
Definition at line 282 of file gfx_type.h.
| enum FontSize | 
Available font sizes.
Definition at line 203 of file gfx_type.h.
Defines a few values that are related to animations using palette changes.
| PALETTE_ANIM_SIZE | number of animated colours | 
| PALETTE_ANIM_START | Index in the _palettes array from which all animations are taking places (table/palettes.h) | 
Definition at line 276 of file gfx_type.h.
| enum PaletteType | 
Palettes OpenTTD supports.
| PAL_DOS | Use the DOS palette. | 
| PAL_WINDOWS | Use the Windows palette. | 
| PAL_AUTODETECT | Automatically detect the palette based on the graphics pack. | 
| MAX_PAL | The number of palettes. | 
Definition at line 289 of file gfx_type.h.
| enum SpriteType | 
Types of sprites that might be loaded.
Definition at line 297 of file gfx_type.h.
| enum Support8bpp | 
Modes for 8bpp support.
Definition at line 316 of file gfx_type.h.
| enum TextColour | 
Colour of the strings, see _string_colourmap in table/string_colours.h or docs/ottd-colourtext-palette.png.
| TC_IS_PALETTE_COLOUR | Colour value is already a real palette colour index, not an index of a StringColour. | 
| TC_NO_SHADE | Do not add shading to this text colour. | 
Definition at line 247 of file gfx_type.h.
| enum WindowKeyCodes | 
Definition at line 29 of file gfx_type.h.
| 
 | static | 
The number of milliseconds per game tick.
Definition at line 306 of file gfx_type.h.
Referenced by ClientNetworkGameSocketHandler::CloseConnection(), VideoDriver_Win32::MainLoop(), VideoDriver_SDL::MainLoop(), VideoDriver_Dedicated::MainLoop(), and NetworkServer_Tick().
 1.8.1.2
 1.8.1.2