Alchemy
Loading...
Searching...
No Matches

render_placement.h File Reference

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)

Detailed Description

A sprite's screen position and scale.

Definition in file render_placement.h.

Function Documentation

◆ SpritePlacement_ReadValues()

const s32 * SpritePlacement_ReadValues ( const struct SpritePlacement * placement)
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().

◆ SpritePlacement_Values()

s32 * SpritePlacement_Values ( struct SpritePlacement * placement)
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() [1/6]

STATIC_ASSERT ( sizeof(struct SpritePlacement) = =0x10)

◆ STATIC_ASSERT() [2/6]

STATIC_ASSERT ( offsetof(struct SpritePlacement, height) = =0x04)

◆ STATIC_ASSERT() [3/6]

STATIC_ASSERT ( offsetof(struct SpritePlacement, y) = =0x08)

◆ STATIC_ASSERT() [4/6]

STATIC_ASSERT ( offsetof(struct SpritePlacement, groundHeight) = =0x0c)

◆ STATIC_ASSERT() [5/6]

STATIC_ASSERT ( sizeof(struct SpriteScale) = =0x08)

◆ STATIC_ASSERT() [6/6]

STATIC_ASSERT ( offsetof(struct SpriteScale, y) = =0x04)