1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-16 21:05:12 +00:00

Reduce overlay dependencies on global.h (6) (#2468)

* add some headers, split some of z64.h

* MtxClear -> IdentityMtx

* more misc cleanups

* move D_80116280 to header, fix build issue

* remove z64.h

* Revert "MtxClear -> IdentityMtx"

This reverts commit 8fc74c0672.

* split z64path.h and z64skin.h functions

* z64face_reaction.h

* cleanup overlay global references

* trim padding

* bss
This commit is contained in:
mzxrules 2025-02-13 18:15:14 -05:00 committed by GitHub
parent 494aecc9fc
commit 4639914583
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
116 changed files with 419 additions and 297 deletions

19
include/z64path.h Normal file
View file

@ -0,0 +1,19 @@
#ifndef Z64PATH_H
#define Z64PATH_H
#include "ultra64.h"
#include "z64math.h"
struct PlayState;
struct Actor;
typedef struct Path {
/* 0x00 */ u8 count; // number of points in the path
/* 0x04 */ Vec3s* points; // Segment Address to the array of points
} Path; // size = 0x8
Path* Path_GetByIndex(struct PlayState* play, s16 index, s16 max);
f32 Path_OrientAndGetDistSq(struct Actor* actor, Path* path, s16 waypoint, s16* yaw);
void Path_CopyLastPoint(Path* path, Vec3f* dest);
#endif