diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2021-11-04 12:11:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-04 12:11:31 -0400 |
commit | be7d0bd3b02727affddb422bdd868f2d219fe181 (patch) | |
tree | 2a888fe548d140e37456f6916075cc963fb51cee /gflib/sprite.h | |
parent | 17b657d83a29919253675b06c12a9ea5471385b2 (diff) | |
parent | 7940f121f66bb0ebe0932bc642c3d9b4015f79a7 (diff) |
Merge branch 'master' into doc-menu
Diffstat (limited to 'gflib/sprite.h')
-rw-r--r-- | gflib/sprite.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gflib/sprite.h b/gflib/sprite.h index 89299d43e..595ecd7db 100644 --- a/gflib/sprite.h +++ b/gflib/sprite.h @@ -5,6 +5,9 @@ #define SPRITE_NONE 0xFF #define TAG_NONE 0xFFFF +// Given to SetSpriteMatrixAnchor to skip anchoring one of the coords. +#define NO_ANCHOR 0x800 + struct SpriteSheet { const void *data; // Raw uncompressed pixel data @@ -227,7 +230,7 @@ struct Sprite bool16 animEnded:1; //0x10 bool16 affineAnimEnded:1; //0x20 bool16 usingSheet:1; //0x40 - bool16 flags_f:1; //0x80 + bool16 anchored:1; //0x80 /*0x40*/ u16 sheetTileStart; @@ -280,7 +283,7 @@ void FreeSpriteOamMatrix(struct Sprite *sprite); void DestroySpriteAndFreeResources(struct Sprite *sprite); void sub_800142C(u32 a1, u32 a2, u16 *a3, u16 a4, u32 a5); void AnimateSprite(struct Sprite *sprite); -void sub_8007E18(struct Sprite* sprite, s16 a2, s16 a3); +void SetSpriteMatrixAnchor(struct Sprite* sprite, s16 x, s16 y); void StartSpriteAnim(struct Sprite *sprite, u8 animNum); void StartSpriteAnimIfDifferent(struct Sprite *sprite, u8 animNum); void SeekSpriteAnim(struct Sprite *sprite, u8 animCmdIndex); |