include/graphics/render_placement.h
A sprite's screen position and scale.
Included by sprite_viewer_scale.c, battle_effect.h, battle_effect_table.h, field.h and sprite.h.
Structures
| Name | Description | |
|---|---|---|
struct | SPR_PLACEMENT | A sprite's screen position and its two vertical offsets, in 16.16 pixels. |
struct | SPR_SCALE | Horizontal and vertical sprite scale; toFIXED(1) is the original size. |
Functions
| Name | Description | |
|---|---|---|
static inline const Sint32 * | sySpritePlacementReadValues (const SPR_PLACEMENT *placement) | Returns the placement's values as an array: x, height, y, groundHeight. |
static inline Sint32 * | sySpritePlacementValues (SPR_PLACEMENT *placement) | Returns the placement's values as a writable array. |
Description
A sprite's screen position and scale.
Functions in detail
sySpritePlacementReadValues
static inline const Sint32 * sySpritePlacementReadValues(const SPR_PLACEMENT *placement)
Returns the placement's values as an array: x, height, y, groundHeight. UB:
the legacy renderer walks across the scalar members as an array. UBFIX
supplies a real array; an always-on union changes producer scheduling.
References Sint32.
Referenced by fdRenderApplyProjectedPlacement().
Definition at line 37 of file render_placement.h.
sySpritePlacementValues
static inline Sint32 *sySpritePlacementValues(SPR_PLACEMENT *placement)
Returns the placement's values as a writable array.
References Sint32.
Referenced by fdSpriteViewerLayOutRing().
Definition at line 48 of file render_placement.h.