102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
Loading...
Searching...
No Matches
DTTR_PCDOGS_T_PKG_SpriteEntry Struct Reference

#include <dttr_pcdogs.h>

Data Fields

uint32_t flags_and_layer_count
 Offset 0x0.
DTTR_PCDOGS_T_PKG_SpriteLayerBinding layers [2]
uint32_t sprite_resource_index
 Offset 0x1C.
DTTR_PCDOGS_T_Math_Vec2I16 movement_source
voidlayer_0_texture_ptr
 Offset 0x24.
uint32_t layer_0_transform [5]
 Offset 0x28.
uint32_t layer_0_anim_state
 Offset 0x3C.
DTTR_PCDOGS_T_Math_Vec2I32 layer_0_scale
 Offset 0x40.
uint32_t scale_tween_start_frame
uint32_t scale_tween_end_frame
uint32_t scale_tween_ease_in_fp12
uint32_t scale_tween_ease_out_fp12
uint32_t color_tween_source_rgb_reserved_high
uint32_t color_tween_target_color_word
uint32_t color_tween_start_frame
uint32_t color_tween_end_frame
uint32_t color_tween_ease_in_fp12
uint32_t color_tween_ease_out_fp12
int32_t rotation_angle_fp12
 Offset 0x70.
voidlayer_1_texture_ptr
 Offset 0x74.
uint32_t layer_1_render_flags
 Offset 0x78.
uint32_t layer_1_control_flags
 Offset 0x7C.
uint32_t layer_1_current_color_word
uint32_t rotation_anim_start_angle
uint32_t rotation_anim_target_angle
uint32_t rotation_anim_start_frame
uint32_t rotation_anim_end_frame
uint32_t rotation_anim_ease_in
uint32_t rotation_anim_ease_out
DTTR_PCDOGS_T_Math_Vec2I32 layer_1_scale
 Offset 0x9C.
voidlayer_1_texture_ptr_2
 Offset 0xA4.
uint32_t sprite_sort_key

Detailed Description

Definition at line 5480 of file dttr_pcdogs.h.

Field Documentation

◆ color_tween_ease_in_fp12

uint32_t DTTR_PCDOGS_T_PKG_SpriteEntry::color_tween_ease_in_fp12

Layer0 color interpolation ease-in percentage, stored in fp12 units. Offset 0x68.

Definition at line 5512 of file dttr_pcdogs.h.

◆ color_tween_ease_out_fp12

uint32_t DTTR_PCDOGS_T_PKG_SpriteEntry::color_tween_ease_out_fp12

Layer0 color interpolation ease-out percentage, stored in fp12 units. Offset 0x6C.

Definition at line 5514 of file dttr_pcdogs.h.

◆ color_tween_end_frame

uint32_t DTTR_PCDOGS_T_PKG_SpriteEntry::color_tween_end_frame

Layer0 color interpolation end frame, cleared after the target is reached. Offset 0x64.

Definition at line 5510 of file dttr_pcdogs.h.

◆ color_tween_source_rgb_reserved_high

uint32_t DTTR_PCDOGS_T_PKG_SpriteEntry::color_tween_source_rgb_reserved_high

Source RGB snapshot for layer0 color interpolation, with low 24 bits documented. Offset 0x58.

Definition at line 5502 of file dttr_pcdogs.h.

◆ color_tween_start_frame

uint32_t DTTR_PCDOGS_T_PKG_SpriteEntry::color_tween_start_frame

Layer0 color interpolation start frame, paired with color_tween_end_frame. Offset 0x60.

Definition at line 5508 of file dttr_pcdogs.h.

◆ color_tween_target_color_word

uint32_t DTTR_PCDOGS_T_PKG_SpriteEntry::color_tween_target_color_word

Layer0 interpolation target/current color word, with low 24-bit RGB documented. Offset 0x5C.

Definition at line 5505 of file dttr_pcdogs.h.

◆ flags_and_layer_count

uint32_t DTTR_PCDOGS_T_PKG_SpriteEntry::flags_and_layer_count

Offset 0x0.

Definition at line 5481 of file dttr_pcdogs.h.

◆ layer_0_anim_state

uint32_t DTTR_PCDOGS_T_PKG_SpriteEntry::layer_0_anim_state

Offset 0x3C.

Definition at line 5492 of file dttr_pcdogs.h.

◆ layer_0_scale

DTTR_PCDOGS_T_Math_Vec2I32 DTTR_PCDOGS_T_PKG_SpriteEntry::layer_0_scale

Offset 0x40.

Definition at line 5493 of file dttr_pcdogs.h.

◆ layer_0_texture_ptr

void* DTTR_PCDOGS_T_PKG_SpriteEntry::layer_0_texture_ptr

Offset 0x24.

Definition at line 5490 of file dttr_pcdogs.h.

◆ layer_0_transform

uint32_t DTTR_PCDOGS_T_PKG_SpriteEntry::layer_0_transform[5]

Offset 0x28.

Definition at line 5491 of file dttr_pcdogs.h.

◆ layer_1_control_flags

uint32_t DTTR_PCDOGS_T_PKG_SpriteEntry::layer_1_control_flags

Offset 0x7C.

Definition at line 5519 of file dttr_pcdogs.h.

◆ layer_1_current_color_word

uint32_t DTTR_PCDOGS_T_PKG_SpriteEntry::layer_1_current_color_word

Current/fallback render color word, with low 24-bit RGB documented. Offset 0x80.

Definition at line 5520 of file dttr_pcdogs.h.

◆ layer_1_render_flags

uint32_t DTTR_PCDOGS_T_PKG_SpriteEntry::layer_1_render_flags

Offset 0x78.

Definition at line 5518 of file dttr_pcdogs.h.

◆ layer_1_scale

DTTR_PCDOGS_T_Math_Vec2I32 DTTR_PCDOGS_T_PKG_SpriteEntry::layer_1_scale

Offset 0x9C.

Definition at line 5534 of file dttr_pcdogs.h.

◆ layer_1_texture_ptr

void* DTTR_PCDOGS_T_PKG_SpriteEntry::layer_1_texture_ptr

Offset 0x74.

Definition at line 5517 of file dttr_pcdogs.h.

◆ layer_1_texture_ptr_2

void* DTTR_PCDOGS_T_PKG_SpriteEntry::layer_1_texture_ptr_2

Offset 0xA4.

Definition at line 5535 of file dttr_pcdogs.h.

◆ layers

DTTR_PCDOGS_T_PKG_SpriteLayerBinding DTTR_PCDOGS_T_PKG_SpriteEntry::layers[2]

Two 0x0C sprite layer bindings: scene node pointer, Graphics_SpriteContext pointer, and descriptor aux pointer. Offset 0x4.

Definition at line 5483 of file dttr_pcdogs.h.

◆ movement_source

DTTR_PCDOGS_T_Math_Vec2I16 DTTR_PCDOGS_T_PKG_SpriteEntry::movement_source

Unpacked signed source X/Y words for sprite movement interpolation. Offset 0x20.

Definition at line 5488 of file dttr_pcdogs.h.

◆ rotation_angle_fp12

int32_t DTTR_PCDOGS_T_PKG_SpriteEntry::rotation_angle_fp12

Offset 0x70.

Definition at line 5516 of file dttr_pcdogs.h.

◆ rotation_anim_ease_in

uint32_t DTTR_PCDOGS_T_PKG_SpriteEntry::rotation_anim_ease_in

Rotation interpolation ease-in percentage, stored in fp12 units. Offset 0x94.

Definition at line 5530 of file dttr_pcdogs.h.

◆ rotation_anim_ease_out

uint32_t DTTR_PCDOGS_T_PKG_SpriteEntry::rotation_anim_ease_out

Rotation interpolation ease-out percentage, stored in fp12 units. Offset 0x98.

Definition at line 5532 of file dttr_pcdogs.h.

◆ rotation_anim_end_frame

uint32_t DTTR_PCDOGS_T_PKG_SpriteEntry::rotation_anim_end_frame

Rotation interpolation end frame, and nonzero keeps the script command waiting. Offset 0x90.

Definition at line 5528 of file dttr_pcdogs.h.

◆ rotation_anim_start_angle

uint32_t DTTR_PCDOGS_T_PKG_SpriteEntry::rotation_anim_start_angle

Current/start rotation angle, eased toward rotation_anim_target_angle. Offset 0x84.

Definition at line 5522 of file dttr_pcdogs.h.

◆ rotation_anim_start_frame

uint32_t DTTR_PCDOGS_T_PKG_SpriteEntry::rotation_anim_start_frame

Rotation interpolation start frame, paired with rotation_anim_end_frame. Offset 0x8C.

Definition at line 5526 of file dttr_pcdogs.h.

◆ rotation_anim_target_angle

uint32_t DTTR_PCDOGS_T_PKG_SpriteEntry::rotation_anim_target_angle

Target rotation angle, stored in fp12 units. Offset 0x88.

Definition at line 5524 of file dttr_pcdogs.h.

◆ scale_tween_ease_in_fp12

uint32_t DTTR_PCDOGS_T_PKG_SpriteEntry::scale_tween_ease_in_fp12

Layer0 scale interpolation ease-in percentage, stored in fp12 units. Offset 0x50.

Definition at line 5498 of file dttr_pcdogs.h.

◆ scale_tween_ease_out_fp12

uint32_t DTTR_PCDOGS_T_PKG_SpriteEntry::scale_tween_ease_out_fp12

Layer0 scale interpolation ease-out percentage, stored in fp12 units. Offset 0x54.

Definition at line 5500 of file dttr_pcdogs.h.

◆ scale_tween_end_frame

uint32_t DTTR_PCDOGS_T_PKG_SpriteEntry::scale_tween_end_frame

Layer0 scale interpolation end frame, cleared after the target is reached. Offset 0x4C.

Definition at line 5496 of file dttr_pcdogs.h.

◆ scale_tween_start_frame

uint32_t DTTR_PCDOGS_T_PKG_SpriteEntry::scale_tween_start_frame

Layer0 scale interpolation start frame, paired with scale_tween_end_frame. Offset 0x48.

Definition at line 5494 of file dttr_pcdogs.h.

◆ sprite_resource_index

uint32_t DTTR_PCDOGS_T_PKG_SpriteEntry::sprite_resource_index

Offset 0x1C.

Definition at line 5486 of file dttr_pcdogs.h.

◆ sprite_sort_key

uint32_t DTTR_PCDOGS_T_PKG_SpriteEntry::sprite_sort_key

Low-word sprite depth/sort key, compared by UI_CompareSpriteDepth. Offset 0xA8.

Definition at line 5536 of file dttr_pcdogs.h.


The documentation for this struct was generated from the following file: