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
| Name | Description | |
|---|---|---|
struct | MODEL_VERTEX | A corner of a model, as btRenderTransformVertices and btRenderProjectVertices read it: signed whole pixels, padded to a word. |
struct | PROJECTED_VERTEX | One projected vertex, as syConvert3Dto2D leaves it. |
struct | MODEL_TEXTURE | A texture for the ARM model renderer: its size as powers of two and the address of its pixels. |
struct | RENDER_MODEL | One entry of the list btRenderDrawModelList draws: which rasterizer draws it, its faces and their transformed corners, its texture and its shade. |
Macros
| Name | Description | |
|---|---|---|
#define | TEXTURE_SCROLL_MASK 0x7f | A texture's scroll wraps within 128 texels. |
Functions
| Name | Description | |
|---|---|---|
void | btRenderDrawModelList (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. |
void | btRenderProjectVertices (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.