Skip to Content
The Alchemy Project

struct ICON_TRANSFER

The buffers an icon (command, item, Psynergy or status) or a portrait is decoded through, held in HEAP_SLOT_ICON_TRANSFER while one icon is drawn: mnIconDecode unpacks encoded into input (via mnTileDecompress4bpp, or syDecompressByteLZ for 256-colour ResourceIdCommandIcons used as is), then expands input into tiles.

Declared in glyph.h.

Fields

NameDescription
Uint8input [1024]unpacked icon data (used directly for 256-colour command icons)
Uint8tiles [512]the icon as sprite tiles, ready for VRAM
Sint16widthtiles
Sint16heighttiles
Uint8 *encodedthe compressed icon

Description

The buffers an icon (command, item, Psynergy or status) or a portrait is decoded through, held in HEAP_SLOT_ICON_TRANSFER while one icon is drawn: mnIconDecode unpacks encoded into input (via mnTileDecompress4bpp, or syDecompressByteLZ for 256-colour ResourceIdCommandIcons used as is), then expands input into tiles.

struct ICON_TRANSFER

Referenced by fdItemDisplayShowItem(), fdItemDisplayShowItemInFront(), mnAbilityIconLoadIntoSlot(), mnBattleCommandRowLoadIconTiles(), mnCommandIconReloadSlot(), mnIconBuildAbilityIconTiles(), mnIconBuildCommandIconTiles(), mnIconBuildItemIconTiles(), mnIconBuildMiscellaneousIconTiles(), mnIconDecode(), mnIconDecompress(), mnIconDrawItem(), mnIconDrawMiscellaneous(), mnIconLoadResourceIntoSlot(), mnIconLoadWithPalette(), mnItemIconCompose(), mnItemIconLoadIntoSlot(), mnItemIconLoadLayersIntoSlot(), mnSelectionMenuLoadLargeIcon(), mnStatusIconLoadIntoSlot(), scColossoShowItemIcon(), scCottageRoomsBShowMythrilBag(), scFloatNut(), scImilFuchinFallsPlaceDragonsEye(), scInit(), scKalayPrepareTown(), scSanctumRaiseItemIcon(), scShipRoomsPlaceAnchorCharm(), scSolSanctumElementalStarRoomPresentStarFX(), scSolSanctumEruptionPlayWiseOneRescue(), scVaultPlaceItemIcon(), scVenusLighthouseAerieCombineSaturosAndMenardi() and scWorldMapUseBlackOrb().

Definition at line 61 of file glyph.h.

Fields in detail

input

Uint8 input[1024]

unpacked icon data (used directly for 256-colour command icons)

tiles

Uint8 tiles[512]

the icon as sprite tiles, ready for VRAM

width

Sint16 width

tiles

height

Sint16 height

tiles

encoded

Uint8 *encoded

the compressed icon