Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
SpritePart Struct Reference

One part of a sprite sheet, a rectangle of its texture. More...

#include <engine/gfx.h>

Data Fields

s16 u
 
s16 v
 
s16 w
 
s16 h
 
s16 clutX
 added to the drawer's CLUT position
 
s16 clutY
 
s16 mode
 0: 4-bit texture, 1: 8-bit, with the drawer's other CLUT
 

Detailed Description

One part of a sprite sheet, a rectangle of its texture.

A sheet starts with three offsets from its start: to its parts, to the list of its frame ids (bytes) and to its first frame, followed by those of the other frames. A frame is three s16, the part count, a CLUT row added to the parts' and the semi-transparency rate (-1: opaque), then an s16 part index, x and y for each part; they are drawn from the last to the first.

Definition at line 285 of file gfx.h.

Field Documentation

◆ u

s16 SpritePart::u

Definition at line 286 of file gfx.h.

Referenced by CARDGAME_drawCardPicture(), and spriteDrawerDraw().

◆ v

s16 SpritePart::v

Definition at line 287 of file gfx.h.

Referenced by CARDGAME_drawCardPicture(), and spriteDrawerDraw().

◆ w

s16 SpritePart::w

Definition at line 288 of file gfx.h.

Referenced by CARDGAME_drawCardPicture(), and spriteDrawerDraw().

◆ h

s16 SpritePart::h

Definition at line 289 of file gfx.h.

Referenced by CARDGAME_drawCardPicture(), and spriteDrawerDraw().

◆ clutX

s16 SpritePart::clutX

added to the drawer's CLUT position

Definition at line 290 of file gfx.h.

Referenced by CARDGAME_drawCardPicture(), and spriteDrawerDraw().

◆ clutY

s16 SpritePart::clutY

Definition at line 291 of file gfx.h.

Referenced by CARDGAME_drawCardPicture(), and spriteDrawerDraw().

◆ mode

s16 SpritePart::mode

0: 4-bit texture, 1: 8-bit, with the drawer's other CLUT

Definition at line 292 of file gfx.h.

Referenced by CARDGAME_drawCardPicture(), and spriteDrawerDraw().


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