OpenTTD Source: TileSpriteToDraw Struct Reference

OpenTTD Source 15.0-beta1

Data Fields
TileSpriteToDraw Struct Reference

## Data Fields
SpriteID | image
PaletteID | pal
const SubSprite * | sub
| only draw a rectangular part of the sprite
int32_t | x
| screen X coordinate of sprite
int32_t | y
| screen Y coordinate of sprite

## Detailed Description

Definition at line 123 of file viewport.cpp.

## Field Documentation

## ◆ image

SpriteID TileSpriteToDraw::image

Definition at line 124 of file viewport.cpp.

## ◆ pal

PaletteID TileSpriteToDraw::pal

Definition at line 125 of file viewport.cpp.

## ◆ sub

const SubSprite* TileSpriteToDraw::sub

only draw a rectangular part of the sprite

Definition at line 126 of file viewport.cpp.

Referenced by AddTileSpriteToDraw().

## ◆ x

int32_t TileSpriteToDraw::x

screen X coordinate of sprite

Definition at line 127 of file viewport.cpp.

Referenced by AddTileSpriteToDraw().

## ◆ y

int32_t TileSpriteToDraw::y

screen Y coordinate of sprite

Definition at line 128 of file viewport.cpp.

Referenced by AddTileSpriteToDraw().

The documentation for this struct was generated from the following file:

- src/viewport.cpp