OpenTTD Source 20260129-master-g2bb01bd0e4
spritecache_type.h File Reference

Types related to the sprite cache. More...

#include "core/enum_type.hpp"

Go to the source code of this file.

Data Structures

struct  Sprite
 Data structure describing a sprite. More...
 

Typedefs

using SpriteCacheCtrlFlags = EnumBitSet< SpriteCacheCtrlFlag, uint8_t >
 

Enumerations

enum class  SpriteCacheCtrlFlag : uint8_t { AllowZoomMin1xPal , AllowZoomMin1x32bpp , AllowZoomMin2xPal , AllowZoomMin2x32bpp }
 Flags to control the sprite caching behaviour of large sprites. More...
 

Detailed Description

Types related to the sprite cache.

Definition in file spritecache_type.h.

Typedef Documentation

◆ SpriteCacheCtrlFlags

Definition at line 32 of file spritecache_type.h.

Enumeration Type Documentation

◆ SpriteCacheCtrlFlag

enum class SpriteCacheCtrlFlag : uint8_t
strong

Flags to control the sprite caching behaviour of large sprites.

Enumerator
AllowZoomMin1xPal 

Allow use of sprite min zoom setting at 1x in palette mode.

AllowZoomMin1x32bpp 

Allow use of sprite min zoom setting at 1x in 32bpp mode.

AllowZoomMin2xPal 

Allow use of sprite min zoom setting at 2x in palette mode.

AllowZoomMin2x32bpp 

Allow use of sprite min zoom setting at 2x in 32bpp mode.

Definition at line 25 of file spritecache_type.h.