OpenTTD Source 20250725-master-g3e06c69e26
Sprite Struct Reference

Data structure describing a sprite. More...

#include <spritecache_type.h>

Data Fields

uint16_t height
 Height of the sprite.
 
uint16_t width
 Width of the sprite.
 
int16_t x_offs
 Number of pixels to shift the sprite to the right.
 
int16_t y_offs
 Number of pixels to shift the sprite downwards.
 
std::byte data []
 Sprite data.
 

Detailed Description

Data structure describing a sprite.

Definition at line 16 of file spritecache_type.h.

Field Documentation

◆ data

◆ height

◆ width

◆ x_offs

◆ y_offs


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