[nostalgia/core] Move setTile implementation out of header

This commit is contained in:
Gary Talent 2021-03-18 20:11:26 -05:00
parent e76fbb0095
commit ba91de90fc
2 changed files with 8 additions and 6 deletions

View File

@ -141,4 +141,8 @@ char charMap[128] = {
0, // ~
};
void setSprite(Context *c, const Sprite &s) {
setSprite(c, s.idx, s.x, s.y, s.tileIdx, s.spriteShape, s.spriteSize, s.flipX);
}
}

View File

@ -107,14 +107,12 @@ void puts(Context *ctx, int column, int row, const char *str);
void setTile(Context *ctx, int layer, int column, int row, uint8_t tile);
void clearTileLayer(Context*, int layer);
void clearTileLayer(Context *ctx, int layer);
void hideSprite(Context*, unsigned);
void hideSprite(Context *ctx, unsigned);
void setSprite(Context*, unsigned idx, unsigned x, unsigned y, unsigned tileIdx, unsigned spriteShape = 0, unsigned spriteSize = 0, unsigned flipX = 0);
void setSprite(Context *ctx, unsigned idx, unsigned x, unsigned y, unsigned tileIdx, unsigned spriteShape = 0, unsigned spriteSize = 0, unsigned flipX = 0);
inline void setSprite(Context *c, const Sprite &s) {
setSprite(c, s.idx, s.x, s.y, s.tileIdx, s.spriteShape, s.spriteSize, s.flipX);
}
void setSprite(Context *ctx, const Sprite &s);
}