A sprite's screen position and scale. More...
Go to the source code of this file.
Data Structures | |
| struct | SpritePlacement |
| A sprite's screen position and its two vertical offsets, in 16.16 pixels. More... | |
| struct | SpriteScale |
| Horizontal and vertical sprite scale; 0x10000 is the original size. More... | |
Functions | |
| static const s32 * | SpritePlacement_ReadValues (const struct SpritePlacement *placement) |
| Returns the placement's values as an array. | |
| static s32 * | SpritePlacement_Values (struct SpritePlacement *placement) |
| Returns the placement's values as a writable array. | |
| STATIC_ASSERT (sizeof(struct SpritePlacement)==0x10) | |
| STATIC_ASSERT (offsetof(struct SpritePlacement, height)==0x04) | |
| STATIC_ASSERT (offsetof(struct SpritePlacement, y)==0x08) | |
| STATIC_ASSERT (offsetof(struct SpritePlacement, groundHeight)==0x0c) | |
| STATIC_ASSERT (sizeof(struct SpriteScale)==0x08) | |
| STATIC_ASSERT (offsetof(struct SpriteScale, y)==0x04) | |
A sprite's screen position and scale.
Definition in file render_placement.h.
|
inlinestatic |
Returns the placement's values as an array.
Definition at line 34 of file render_placement.h.
Referenced by Render_ApplyProjectedPlacement(), and SpritePlacement_ReadValues().
|
inlinestatic |
Returns the placement's values as a writable array.
Definition at line 43 of file render_placement.h.
Referenced by Map_BuildProbeRing(), and SpritePlacement_Values().
| STATIC_ASSERT | ( | sizeof(struct SpritePlacement) | = =0x10 | ) |
| STATIC_ASSERT | ( | offsetof(struct SpritePlacement, height) | = =0x04 | ) |
| STATIC_ASSERT | ( | offsetof(struct SpritePlacement, y) | = =0x08 | ) |
| STATIC_ASSERT | ( | offsetof(struct SpritePlacement, groundHeight) | = =0x0c | ) |
| STATIC_ASSERT | ( | sizeof(struct SpriteScale) | = =0x08 | ) |
| STATIC_ASSERT | ( | offsetof(struct SpriteScale, y) | = =0x04 | ) |