diff options
author | yenatch <yenatch@gmail.com> | 2017-06-20 20:26:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-20 20:26:44 -0400 |
commit | b22e5219ba01c70da9a03397430bff10d0b99060 (patch) | |
tree | 7db3364ee8ccda2ca66606ef1b65ebc4113a3660 /include/sprite.h | |
parent | 102f5b1e15e7295e30a3cebfbbad3c8af4cc1d37 (diff) | |
parent | a80eef47ca3fea61b9345ae791056c9ca2650f97 (diff) |
Merge pull request #335 from marijnvdwerf/camthesaxman/decompile_pokeball
Decompile pokeball
Diffstat (limited to 'include/sprite.h')
-rw-r--r-- | include/sprite.h | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/include/sprite.h b/include/sprite.h index dd9d5efb7..3f893132e 100644 --- a/include/sprite.h +++ b/include/sprite.h @@ -5,11 +5,18 @@ struct SpriteSheet { - const u8 *data; + const u8 *data; // Raw uncompressed pixel data u16 size; u16 tag; }; +struct CompressedSpriteSheet +{ + const u8 *data; // LZ77 compressed pixel data + u16 size; // Uncompressed size of pixel data + u16 tag; +}; + struct SpriteFrameImage { u8 *data; @@ -20,7 +27,13 @@ struct SpriteFrameImage struct SpritePalette { - const u16 *data; + const u16 *data; // Raw uncompressed palette data + u16 tag; +}; + +struct CompressedSpritePalette +{ + const u8 *data; // LZ77 compressed palette data u16 tag; }; @@ -99,6 +112,10 @@ union AffineAnimCmd #define AFFINEANIMCMD_FRAME(_xScale, _yScale, _rotation, _duration) \ {.frame = {.xScale = _xScale, .yScale = _yScale, .rotation = _rotation, .duration = _duration}} +#define AFFINEANIMCMD_LOOP(_count) \ + {.loop = {.type = AFFINEANIMCMDTYPE_LOOP, .count = _count}} +#define AFFINEANIMCMD_JUMP(_target) \ + {.jump = {.type = AFFINEANIMCMDTYPE_JUMP, .target = _target}} #define AFFINEANIMCMD_END \ {.type = AFFINEANIMCMDTYPE_END} |