include/graphics/glyph.h
The main font's glyphs, and the palette and buffers icons are built in.
Included by field_actors.c, field_engine_item_display.c, script_commands_actor_commands.c, menu_internal.h, dehkan_plateau.c, gabomba_statue_chamber.c, jupiter_lighthouse_aerie_beacon.c, kandorean_temple.c, kibombo.c, lemurian_ship_deck.c, mars_lighthouse_aerie.c, mars_lighthouse_star_room.c, settlements.c, shaman_village.c, yampi_desert.c, glyph_arm.c and window_internal.h.
Structures
| Name | Description | |
|---|---|---|
struct | ICON_PALETTE | A compact palette shared by a selection's command icons: the slot each icon colour was given, or GLYPH_PALETTE_SLOT_FREE for none yet, and how many slots are taken. |
struct | GLYPH | A character of the text font: its width and its rows of pixels. |
struct | ICON_TRANSFER | The buffers an icon or a portrait is decoded through, in HEAP_SLOT_ICON_TRANSFER for one build: mnIconDecode unpacks encoded into input, then expands input into tiles. |
Macros
| Name | Description | |
|---|---|---|
#define | GLYPH_PALETTE_SLOT_FREE 255 | ICON_PALETTE.slot of an icon colour given no slot yet. |
#define | ICON_TILE_BYTES (16 * 16 / 2) | A 16-pixel square icon's tiles at 4 bits a pixel, what VRAM takes of ICON_TRANSFER.tiles for an item, Psynergy or status icon. |
Enumerations
| Name | Description | |
|---|---|---|
enum | anonymous enum { FONT_GLYPH_ROWS } | A glyph's height in rows of pixels: 12 in Japanese. |
enum | anonymous enum { FONT_GLYPH_ROWS } | A glyph's height in rows of pixels: 15 outside Japanese. |
Variables
| Name | Description | |
|---|---|---|
extern const GLYPH | FontGlyphs [] | The main font, from character code 32: its glyphs in code order. |
Description
The main font's glyphs, and the palette and buffers icons are built in.
Macros in detail
GLYPH_PALETTE_SLOT_FREE
#define GLYPH_PALETTE_SLOT_FREE 255
ICON_PALETTE.slot of an icon colour given no slot yet.
Referenced by mnBattleCommandRowLoadIconTiles() and mnBattleCommandRowRun().
Definition at line 25 of file glyph.h.
ICON_TILE_BYTES
#define ICON_TILE_BYTES (16 * 16 / 2)
A 16-pixel square icon's tiles at 4 bits a pixel, what VRAM takes of
ICON_TRANSFER.tiles for an item, Psynergy or status icon.
Referenced by fdActorSetItemIcon(), fdActorShowItemIconById(), fdItemDisplayShowItem(), fdItemDisplayShowItemInFront(), mnCursorCreate(), mnIconCreateHandCursor(), mnLoadDjinnArrows(), mnLoadStatArrows(), mnNameCaretLoadIntoSlot(), mnNameEntryEditMemberName(), mnOpenBackdropScreen(), mnPointingHandLoadIntoFreeSlot(), mnPointingHandLoadIntoSlot(), scDehkanPlateauCreatePoundCube(), scGabombaStatueChamberWhereIsTheOrb(), scJupiterLighthouseCastTheJupiterStar(), scKandoreanTempleCreateLashPebble(), scKibomboCreateBlackCrystal(), scMarsLighthouseAerieLightBeacon(), scMarsLighthouseStarRoomCreateMarsStar(), scMarsLighthouseStarRoomLoadMarsStarIcon(), scSettlementsSetUpKaltIsland(), scShamanVillageCreateRodIcon() and scYampiDesertCreateScoopGem().
Definition at line 73 of file glyph.h.
Enumerations in detail
anonymous enum
enum { FONT_GLYPH_ROWS }
A glyph's height in rows of pixels: 12 in Japanese.
| Enumerator | Value | Description |
|---|---|---|
FONT_GLYPH_ROWS | 12 |
Definition at line 12 of file glyph.h.
anonymous enum
enum { FONT_GLYPH_ROWS }
A glyph's height in rows of pixels: 15 outside Japanese.
| Enumerator | Value | Description |
|---|---|---|
FONT_GLYPH_ROWS | 15 |
Definition at line 18 of file glyph.h.
Variables in detail
FontGlyphs
extern const GLYPH FontGlyphs[]
The main font, from character code 32: its glyphs in code order.
Referenced by mnGlyphDrawArm(), mnMessageType(), mnTextDrawGlyphPair() and mnTextDrawGlyphToCanvas().
Definition at line 50 of file glyph.h.