Skip to Content
The Alchemy Project

include/battle_effect/render_model.h

The model records the battle effects hand to the ARM model renderer.

Included by battle_effect_constants.c, battle_effect_internal.h and battle_effect_table.c.

Structures

NameDescription
structMODEL_VERTEXA corner of a model, as btRenderTransformVertices and btRenderProjectVertices read it: signed whole pixels, padded to a word.
structPROJECTED_VERTEXOne projected vertex, as syConvert3Dto2D leaves it.
structMODEL_TEXTUREA texture for the ARM model renderer: its size as powers of two and the address of its pixels.
structRENDER_MODELOne entry of the list btRenderDrawModelList draws: which rasterizer draws it, its faces and their transformed corners, its texture and its shade.

Macros

NameDescription
#defineTEXTURE_SCROLL_MASK 0x7fA texture's scroll wraps within 128 texels.

Functions

NameDescription
voidbtRenderDrawModelList (RENDER_MODEL *model)Draws a list of models, ended by a cleared entry: each model's rasterizer is copied into IWRAM for a run of its kind, and its texture with it where there is room.
voidbtRenderProjectVertices (MODEL_VERTEX *vertices, PROJECTED_VERTEX *screen, Sint32 count)Projects count model vertices through syConvert3Dto2D into screen coordinates.

Description

The model records the battle effects hand to the ARM model renderer.

Macros in detail

TEXTURE_SCROLL_MASK

#define TEXTURE_SCROLL_MASK 0x7f

A texture's scroll wraps within 128 texels.

Referenced by btEffectRunCastingImpact(), btEffectRunCatastrophe(), btEffectRunCruelRuin(), btEffectRunFirePuppet(), btEffectRunFormChange(), btEffectRunFume(), btEffectRunHaures(), btEffectRunMeteorBlow(), btEffectRunRisingDragon(), btEffectRunRisingDragonEnemy(), btEffectRunTwistingColumn() and btEffectRunWaterSheet().

Definition at line 56 of file render_model.h.