OpenTTD Source: ChildScreenSpriteToDraw Struct Reference

OpenTTD Source 15.3

Data Fields
ChildScreenSpriteToDraw Struct Reference

## Data Fields
SpriteID | image
PaletteID | pal
const SubSprite * | sub
| only draw a rectangular part of the sprite
int32_t | x
int32_t | y
bool | relative
int | next
| next child to draw (-1 at the end)

## Detailed Description

Definition at line 133 of file viewport.cpp.

## Field Documentation

## ◆ image

SpriteID ChildScreenSpriteToDraw::image

Definition at line 134 of file viewport.cpp.

## ◆ next

int ChildScreenSpriteToDraw::next

next child to draw (-1 at the end)

Definition at line 140 of file viewport.cpp.

Referenced by AddChildSpriteScreen().

## ◆ pal

PaletteID ChildScreenSpriteToDraw::pal

Definition at line 135 of file viewport.cpp.

## ◆ relative

bool ChildScreenSpriteToDraw::relative

Definition at line 139 of file viewport.cpp.

## ◆ sub

const SubSprite* ChildScreenSpriteToDraw::sub

only draw a rectangular part of the sprite

Definition at line 136 of file viewport.cpp.

Referenced by AddChildSpriteScreen().

## ◆ x

int32_t ChildScreenSpriteToDraw::x

Definition at line 137 of file viewport.cpp.

## ◆ y

int32_t ChildScreenSpriteToDraw::y

Definition at line 138 of file viewport.cpp.

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

- src/viewport.cpp