mirror of
https://github.com/zeldaret/tmc
synced 2026-07-11 07:25:23 -04:00
cleanup graphics code
a bit
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ extern void SetTile(u32 tileIndex, u32 tilePos, u32 layer);
|
||||
|
||||
extern void UpdateScrollVram(void);
|
||||
extern u32 sub_080B1BA4(u32, u32, u32);
|
||||
extern void LoadResourceAsync(const void* src, u32 dest, u32 size);
|
||||
extern void LoadResourceAsync(const void* src, void* dest, u32 size);
|
||||
extern void GenericConfused(struct Entity_*);
|
||||
extern void sub_08001290(struct Entity_*, u32);
|
||||
extern void GenericKnockback(struct Entity_*);
|
||||
|
||||
+1
-1
@@ -560,7 +560,7 @@ extern u8 gManagerCount;
|
||||
#define TILE(x, y) (((((x)-gRoomControls.origin_x) >> 4) & 0x3F) | ((((y)-gRoomControls.origin_y) >> 4) & 0x3F) << 6)
|
||||
// Calculate tilePos from x and y coordinates where x and y are already relative to the current room.
|
||||
#define TILE_LOCAL(x, y) ((((x) >> 4) & 0x3F) | (((y) >> 4) & 0x3F) << 6)
|
||||
#define TILE_POS(x, y) (x + (y << 6))
|
||||
#define TILE_POS(x, y) ((x) + ((y) << 6))
|
||||
#define TILE_POS_X_COMPONENT 0x3f
|
||||
#define TILE_POS_Y_COMPONENT 0xfc0
|
||||
#define COORD_TO_TILE(entity) TILE((entity)->x.HALF.HI, (entity)->y.HALF.HI)
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
|
||||
typedef struct {
|
||||
Manager base;
|
||||
u8 field_0x20;
|
||||
u8 field_0x21;
|
||||
u8 field_0x22;
|
||||
u8 gfxGroup0;
|
||||
u8 gfxGroup1;
|
||||
u8 gfxGroup2;
|
||||
} HyruleTownTileSetManager;
|
||||
|
||||
#endif // HYRULETOWNTILESETMANAGER_H
|
||||
|
||||
Reference in New Issue
Block a user