# sprite.h File Reference

`#include "gfx_type.h"`

Go to the source code of this file.

## Data Structures
struct | DrawTileSeqStruct
struct | DrawTileSprites
struct | DrawBuildingsTileStruct
| This structure is the same for both Industries and Houses. More...
## Defines
#define | GENERAL_SPRITE_COLOR(color) ((color) + PALETTE_RECOLOR_START)
#define | PLAYER_SPRITE_COLOR(owner) (GENERAL_SPRITE_COLOR(_player_colors[owner]))
#define | IS_CUSTOM_SPRITE(sprite) ((sprite) >= SPR_SIGNALS_BASE)
| Whether a sprite comes from the original graphics files or a new grf file (either supplied by OpenTTD or supplied by the user).
#define | foreach_draw_tile_seq(idx, list) for (idx = list; ((byte) idx->delta_x) != 0x80; idx++)
| Iterate through all DrawTileSeqStructs in DrawTileSprites.
## Functions
void | SkipSpriteData (byte type, uint16 num)
| Skip the given amount of sprite graphics data.

## Detailed Description

Definition in file sprite.h.

## Define Documentation

#define foreach_draw_tile_seq | ( | idx,
|  | list |  | ) | for (idx = list; ((byte) idx->delta_x) != 0x80; idx++)

Iterate through all DrawTileSeqStructs in DrawTileSprites.

Definition at line 57 of file sprite.h.

Referenced by DrawStationTile().

#define IS_CUSTOM_SPRITE | ( | sprite |  | ) | ((sprite) >= SPR_SIGNALS_BASE)

Whether a sprite comes from the original graphics files or a new grf file (either supplied by OpenTTD or supplied by the user).

Parameters:

  | sprite | The sprite to check

Returns:
  True if it is a new sprite, or false if it is original.

Definition at line 20 of file sprite.h.

## Function Documentation

void SkipSpriteData | ( | byte | type,
|  | uint16 | num |
| ) |  |  |

Skip the given amount of sprite graphics data.

Parameters:

  | type | the type of sprite (compressed etc)
  | num | the amount of sprites to skip

Definition at line 80 of file spritecache.cpp.

Referenced by ReadSpriteHeaderSkipData().