Alchemy
Loading...
Searching...
No Matches

graphics.h File Reference

The screen blend's globals and the graphics routines. More...

Go to the source code of this file.

Data Structures

struct  TileMask
 One row's masks for a pair of bar-pattern tiles: a word XORed into each tile's row. More...

Functions

s32 FarCall_EffectTable (s32 slot, s32 width_shift, s32 height_shift, s32 flags, u32 mode)

Variables

u8 gBlendBrighten
volatile u8 gBlendDuration
u8 gBlendFramesLeft
u16 gBlendLayers
u8 gBlendStartLevel
volatile u8 gBlendTargetLevel
u8 gRomShiftedTilePair []
const u32 RelocatedQ16DotProduct []
u8 Resource_Decode2CodeSize []
u8 Resource_DecodeByteLzCodeSize []
const u8 gUi_PpRowString []
s32 gUi_FixedTileBlocks []
const u8 gUi_HpRowString []
const u8 gUi_HpString []
const u8 gUi_PpString []
const u8 gUi_SlashString []
u8 * gUiIcon_ItemIconPointers []
u8 * gUiIcon_ItemIconPointersEnd []
u8 * gUiIcon_MiscIconPointers []
u8 * gUiIcon_PsynergyIconPointers []
u8 * gUiIcon_PsynergyIconPointersEnd []
u8 ColorBuffer_BackupAndBrightenCodeSize []
u8 ColorBuffer_BackupAndBrightenPartialCodeSize []
u8 ColorBuffer_BackupAndDarkenCodeSize []
u8 ColorBuffer_BackupAndDarkenPartialCodeSize []
u8 ColorBuffer_BackupAndHalveCodeSize []
u8 ColorBuffer_BackupAndHalveNonzeroCodeSize []
u8 ColorBuffer_BackupAndScaleNonzeroThreeQuartersCodeSize []
u8 ColorBuffer_BackupAndScaleThreeQuartersCodeSize []
const u8 ColorBuffer_BrightenKernel []
const u8 ColorBuffer_BrightenPartialKernel []
const u8 ColorBuffer_DarkenKernel []
const u8 ColorBuffer_DarkenPartialKernel []
const u8 ColorBuffer_HalveKernel []
const u8 ColorBuffer_HalveNonzeroKernel []
const u8 ColorBuffer_ScaleNonzeroThreeQuartersKernel []
const u8 ColorBuffer_ScaleThreeQuartersKernel []
void * gRenderSlotHeads []
u8 gPartyStatusWork []
u8 gSelectionWorkspace []
const struct ArticleTable gUiText_ArticleTable
 The article of each article class.
const struct TileMask gMenu_BarPatternRows []
const u8 gDisplayScroll_Font []
const u8 gDisplayTransition_DitherTable []
 0 to 63 shuffled: the order in which the dissolve sets the pixels.
s8 gDisplayTransition_EdgeOffsets []
 The wobble of the circle edge of window transition mode 8.
u8 gDisplayTransition_NoiseWidths []
 The width of the bars of window transition mode 0, by progress.
const u8 FarCall_ResourceTable []
u8 gDecodeFillByte
struct PaletteSnapshotWork * gPaletteWork
u16 gGraphics_ExpandNibbleTable []
struct AnimationObject * gSpriteObjects
const u8 gMenu_CursorObjectTiles []
const u8 gNameEntry_AlternateKeyboardTilemap []
s8 gNameEntry_CaretWave []
const u8 gNameEntry_VoicedMarkRanges []
u8 gNameEntry_DeleteKeyLabel []
u8 gNameEntry_EndKeyLabel []
const u8 gNameEntry_SemivoicedMarkRanges []
const u8 gNameEntry_KeyboardTilemap []
const u8 gRender_DecodeFrameBuffer []
const u8 Resource_Decode2 []
const u8 Resource_DecodeByteLzArm []
const u8 Resource_DecodeHalfwordLz []
const u8 Resource_DecodeType01Arm []
u8 Resource_DecodeType01CodeSize []
u8 Resource_DecompressHalfwordsCodeSize []
u8 gResource_FixedBlockBTiles []
const u8 gResource_FixedBlockATiles []
const u8 BattleEffect_Expand []
u8 BattleEffect_ExpandCodeSize []
const u8 Text_DecodeSymbol []
u8 Text_DecodeSymbolCodeSize []
u8 Tile_BuildMetatilesCodeSize []
const u8 Tile_ConvertMap []
u8 Tile_ConvertMapCodeSize []
const u8 Tile_Decompress4bpp []
u8 Tile_Decompress4bppCodeSize []
const u8 Tile_ExpandMasked []
u8 Tile_ExpandMaskedCodeSize []
const u8 Tile_ExpandOpaque []
u8 Tile_ExpandOpaqueCodeSize []
const u8 gTitle_PromptTiles []
s32 gUi_ObjectPulseScales []
const u8 gUi_PairBobOffsets []
u8 * gUiIcon_DigitPointers []
u8 * gUiIcon_FramePointerTable []
u8 * gUiIcon_MarkPointers []
u8 * gUiIcon_OverlayPointerTable []
u8 gUiIcon_ResourceTiles []
const s8 gUiSprite_BounceOffsets []
 A hop of up to 8 pixels over 16 frames.
const u8 gUiSprite_CursorFrameTiles []
const s8 gUiSprite_WobbleOffsets [][2]
 A swing along an arc of radius 4, as {x, y} pairs: x runs 0, 4, 0, -4, 0 while y rises at each side.
const u8 gUiText_ColourPens []
u8 UiText_DrawGlyphCodeSize []
const u8 gUiText_GlyphWidths []
const struct ArticleTable gUiText_IndefiniteArticles
const u8 UiText_LookupMessageArm []
u8 UiText_LookupMessageCodeSize []
const s8 gUiWindow_PartyColumnOffsets []

Detailed Description

The screen blend's globals and the graphics routines.

Definition in file graphics.h.

Function Documentation

◆ FarCall_EffectTable()

s32 FarCall_EffectTable ( s32 slot,
s32 width_shift,
s32 height_shift,
s32 flags,
u32 mode )

Referenced by FarCall_EffectTable().

Variable Documentation

◆ gBlendBrighten

u8 gBlendBrighten
extern

Referenced by Fade_Start(), and Fade_Update().

◆ gBlendDuration

volatile u8 gBlendDuration
extern

Referenced by Fade_Start(), Fade_Update(), and Fade_Wait().

◆ gBlendFramesLeft

u8 gBlendFramesLeft
extern

Referenced by Fade_Start(), and Fade_Update().

◆ gBlendLayers

u16 gBlendLayers
extern

Referenced by Fade_Start(), and Fade_Update().

◆ gBlendStartLevel

u8 gBlendStartLevel
extern

Referenced by Fade_Start(), and Fade_Update().

◆ gBlendTargetLevel

volatile u8 gBlendTargetLevel
extern

Referenced by Fade_Start(), and Fade_Update().

◆ gRomShiftedTilePair

u8 gRomShiftedTilePair[]
extern

◆ RelocatedQ16DotProduct

const u32 RelocatedQ16DotProduct[]
extern

Referenced by Transform_BuildLookAt().

◆ Resource_Decode2CodeSize

u8 Resource_Decode2CodeSize[]
extern

Referenced by Resource_DecodeType2().

◆ Resource_DecodeByteLzCodeSize

u8 Resource_DecodeByteLzCodeSize[]
extern

Referenced by Resource_DecodeByteLz().

◆ gUi_PpRowString

const u8 gUi_PpRowString[]
extern

Referenced by Ui_DrawValuePairRows().

◆ gUi_FixedTileBlocks

s32 gUi_FixedTileBlocks[]
extern

Referenced by Ui_GetTableWordZero().

◆ gUi_HpRowString

const u8 gUi_HpRowString[]
extern

Referenced by Ui_DrawValuePairRows().

◆ gUi_HpString

const u8 gUi_HpString[]
extern

Referenced by Ui_DrawValuePairRows().

◆ gUi_PpString

const u8 gUi_PpString[]
extern

Referenced by Ui_DrawValuePairRows().

◆ gUi_SlashString

const u8 gUi_SlashString[]
extern

Referenced by Ui_DrawValuePairRows().

◆ gUiIcon_ItemIconPointers

◆ gUiIcon_ItemIconPointersEnd

u8* gUiIcon_ItemIconPointersEnd[]
extern

Referenced by UiIcon_CountItemIcons().

◆ gUiIcon_MiscIconPointers

u8* gUiIcon_MiscIconPointers[]
extern

◆ gUiIcon_PsynergyIconPointers

u8* gUiIcon_PsynergyIconPointers[]
extern

◆ gUiIcon_PsynergyIconPointersEnd

u8* gUiIcon_PsynergyIconPointersEnd[]
extern

◆ ColorBuffer_BackupAndBrightenCodeSize

u8 ColorBuffer_BackupAndBrightenCodeSize[]
extern

◆ ColorBuffer_BackupAndBrightenPartialCodeSize

u8 ColorBuffer_BackupAndBrightenPartialCodeSize[]
extern

◆ ColorBuffer_BackupAndDarkenCodeSize

u8 ColorBuffer_BackupAndDarkenCodeSize[]
extern

◆ ColorBuffer_BackupAndDarkenPartialCodeSize

u8 ColorBuffer_BackupAndDarkenPartialCodeSize[]
extern

◆ ColorBuffer_BackupAndHalveCodeSize

u8 ColorBuffer_BackupAndHalveCodeSize[]
extern

◆ ColorBuffer_BackupAndHalveNonzeroCodeSize

u8 ColorBuffer_BackupAndHalveNonzeroCodeSize[]
extern

◆ ColorBuffer_BackupAndScaleNonzeroThreeQuartersCodeSize

u8 ColorBuffer_BackupAndScaleNonzeroThreeQuartersCodeSize[]
extern

◆ ColorBuffer_BackupAndScaleThreeQuartersCodeSize

u8 ColorBuffer_BackupAndScaleThreeQuartersCodeSize[]
extern

◆ ColorBuffer_BrightenKernel

const u8 ColorBuffer_BrightenKernel[]
extern

◆ ColorBuffer_BrightenPartialKernel

const u8 ColorBuffer_BrightenPartialKernel[]
extern

◆ ColorBuffer_DarkenKernel

const u8 ColorBuffer_DarkenKernel[]
extern

◆ ColorBuffer_DarkenPartialKernel

const u8 ColorBuffer_DarkenPartialKernel[]
extern

◆ ColorBuffer_HalveKernel

const u8 ColorBuffer_HalveKernel[]
extern

◆ ColorBuffer_HalveNonzeroKernel

const u8 ColorBuffer_HalveNonzeroKernel[]
extern

◆ ColorBuffer_ScaleNonzeroThreeQuartersKernel

const u8 ColorBuffer_ScaleNonzeroThreeQuartersKernel[]
extern

◆ ColorBuffer_ScaleThreeQuartersKernel

const u8 ColorBuffer_ScaleThreeQuartersKernel[]
extern

◆ gRenderSlotHeads

void* gRenderSlotHeads[]
extern

◆ gPartyStatusWork

u8 gPartyStatusWork[]
extern

◆ gSelectionWorkspace

u8 gSelectionWorkspace[]
extern

◆ gUiText_ArticleTable

const struct ArticleTable gUiText_ArticleTable
extern

The article of each article class.

Definition at line 152 of file articles.c.

Referenced by UiText_AppendArticleName().

◆ gMenu_BarPatternRows

const struct TileMask gMenu_BarPatternRows[]
extern

◆ gDisplayScroll_Font

const u8 gDisplayScroll_Font[]
extern

Referenced by DisplayScroll_DrawLine().

◆ gDisplayTransition_DitherTable

const u8 gDisplayTransition_DitherTable[]
extern

0 to 63 shuffled: the order in which the dissolve sets the pixels.

Definition at line 132 of file fxdata.c.

Referenced by DisplayTransition_UpdateFrame().

◆ gDisplayTransition_EdgeOffsets

s8 gDisplayTransition_EdgeOffsets[]
extern

The wobble of the circle edge of window transition mode 8.

Definition at line 126 of file fxdata.c.

Referenced by DisplayTransition_UpdateScanlineTable().

◆ gDisplayTransition_NoiseWidths

u8 gDisplayTransition_NoiseWidths[]
extern

The width of the bars of window transition mode 0, by progress.

Definition at line 120 of file fxdata.c.

Referenced by DisplayTransition_UpdateScanlineTable().

◆ FarCall_ResourceTable

const u8 FarCall_ResourceTable[]
extern

Referenced by Ui_RunIconMonitor().

◆ gDecodeFillByte

u8 gDecodeFillByte
extern

Referenced by Ui_RunIconMonitor().

◆ gPaletteWork

struct PaletteSnapshotWork* gPaletteWork
extern

◆ gGraphics_ExpandNibbleTable

u16 gGraphics_ExpandNibbleTable[]
extern

◆ gSpriteObjects

◆ gMenu_CursorObjectTiles

const u8 gMenu_CursorObjectTiles[]
extern

◆ gNameEntry_AlternateKeyboardTilemap

const u8 gNameEntry_AlternateKeyboardTilemap[]
extern

◆ gNameEntry_CaretWave

s8 gNameEntry_CaretWave[]
extern

Referenced by NameEntry_EditOwnerName().

◆ gNameEntry_VoicedMarkRanges

const u8 gNameEntry_VoicedMarkRanges[]
extern

◆ gNameEntry_DeleteKeyLabel

u8 gNameEntry_DeleteKeyLabel[]
extern

Referenced by NameEntry_EditOwnerName().

◆ gNameEntry_EndKeyLabel

u8 gNameEntry_EndKeyLabel[]
extern

Referenced by NameEntry_EditOwnerName().

◆ gNameEntry_SemivoicedMarkRanges

const u8 gNameEntry_SemivoicedMarkRanges[]
extern

◆ gNameEntry_KeyboardTilemap

const u8 gNameEntry_KeyboardTilemap[]
extern

Referenced by NameEntry_EditOwnerName().

◆ gRender_DecodeFrameBuffer

const u8 gRender_DecodeFrameBuffer[]
extern

◆ Resource_Decode2

const u8 Resource_Decode2[]
extern

Referenced by Resource_DecodeType01().

◆ Resource_DecodeByteLzArm

const u8 Resource_DecodeByteLzArm[]
extern

Referenced by Resource_DecodeType2().

◆ Resource_DecodeHalfwordLz

const u8 Resource_DecodeHalfwordLz[]
extern

◆ Resource_DecodeType01Arm

const u8 Resource_DecodeType01Arm[]
extern

◆ Resource_DecodeType01CodeSize

u8 Resource_DecodeType01CodeSize[]
extern

Referenced by Resource_DecodeType01().

◆ Resource_DecompressHalfwordsCodeSize

u8 Resource_DecompressHalfwordsCodeSize[]
extern

◆ gResource_FixedBlockBTiles

◆ gResource_FixedBlockATiles

const u8 gResource_FixedBlockATiles[]
extern

◆ BattleEffect_Expand

const u8 BattleEffect_Expand[]
extern

◆ BattleEffect_ExpandCodeSize

u8 BattleEffect_ExpandCodeSize[]
extern

◆ Text_DecodeSymbol

const u8 Text_DecodeSymbol[]
extern

◆ Text_DecodeSymbolCodeSize

u8 Text_DecodeSymbolCodeSize[]
extern

◆ Tile_BuildMetatilesCodeSize

u8 Tile_BuildMetatilesCodeSize[]
extern

Referenced by UiWindow_FillFromScene().

◆ Tile_ConvertMap

const u8 Tile_ConvertMap[]
extern

Referenced by Tilemap_ConvertBuffer().

◆ Tile_ConvertMapCodeSize

u8 Tile_ConvertMapCodeSize[]
extern

Referenced by Tilemap_ConvertBuffer().

◆ Tile_Decompress4bpp

const u8 Tile_Decompress4bpp[]
extern

Referenced by UiIcon_Decode(), and UiIcon_Decompress().

◆ Tile_Decompress4bppCodeSize

u8 Tile_Decompress4bppCodeSize[]
extern

Referenced by UiIcon_Decode(), and UiIcon_Decompress().

◆ Tile_ExpandMasked

const u8 Tile_ExpandMasked[]
extern

Referenced by UiIcon_Decode().

◆ Tile_ExpandMaskedCodeSize

u8 Tile_ExpandMaskedCodeSize[]
extern

Referenced by UiIcon_Decode().

◆ Tile_ExpandOpaque

const u8 Tile_ExpandOpaque[]
extern

Referenced by UiIcon_Decode().

◆ Tile_ExpandOpaqueCodeSize

u8 Tile_ExpandOpaqueCodeSize[]
extern

Referenced by UiIcon_Decode().

◆ gTitle_PromptTiles

const u8 gTitle_PromptTiles[]
extern

Referenced by Title_ShowIntro().

◆ gUi_ObjectPulseScales

s32 gUi_ObjectPulseScales[]
extern

◆ gUi_PairBobOffsets

const u8 gUi_PairBobOffsets[]
extern

Referenced by RenderOutput_BobPair().

◆ gUiIcon_DigitPointers

u8* gUiIcon_DigitPointers[]
extern

Referenced by ItemIcon_Compose().

◆ gUiIcon_FramePointerTable

◆ gUiIcon_MarkPointers

u8* gUiIcon_MarkPointers[]
extern

Referenced by ItemIcon_Compose().

◆ gUiIcon_OverlayPointerTable

u8* gUiIcon_OverlayPointerTable[]
extern

◆ gUiIcon_ResourceTiles

u8 gUiIcon_ResourceTiles[]
extern

◆ gUiSprite_BounceOffsets

const s8 gUiSprite_BounceOffsets[]
extern

A hop of up to 8 pixels over 16 frames.

Definition at line 199 of file articles.c.

Referenced by UiWork_AnimateSpriteSlots().

◆ gUiSprite_CursorFrameTiles

const u8 gUiSprite_CursorFrameTiles[]
extern

◆ gUiSprite_WobbleOffsets

const s8 gUiSprite_WobbleOffsets[][2]
extern

A swing along an arc of radius 4, as {x, y} pairs: x runs 0, 4, 0, -4, 0 while y rises at each side.

Definition at line 185 of file articles.c.

Referenced by UiWork_AnimateSpriteSlots().

◆ gUiText_ColourPens

const u8 gUiText_ColourPens[]
extern

◆ UiText_DrawGlyphCodeSize

u8 UiText_DrawGlyphCodeSize[]
extern

Referenced by UiText_DrawGlyph().

◆ gUiText_GlyphWidths

const u8 gUiText_GlyphWidths[]
extern

◆ gUiText_IndefiniteArticles

const struct ArticleTable gUiText_IndefiniteArticles
extern

◆ UiText_LookupMessageArm

const u8 UiText_LookupMessageArm[]
extern

Referenced by UiText_LookupMessage().

◆ UiText_LookupMessageCodeSize

u8 UiText_LookupMessageCodeSize[]
extern

Referenced by UiText_LookupMessage().

◆ gUiWindow_PartyColumnOffsets

const s8 gUiWindow_PartyColumnOffsets[]
extern