mirror of
https://github.com/zeldaret/oot.git
synced 2024-12-27 07:07:09 +00:00
Restructuring Camera Structs and Related Macros (#1108)
* Proof-of-concept * small cleanup * static to fixed * Update to new names * Use full names for structs * Update comments * PR 1 * More macro changes * More PR Suggestions * Use a union for funcData * Apply change to all cam structs * typedef union outside of cam struct * Add size * typedef union, not struct * funcData -> paramData * Better manage doorParams
This commit is contained in:
parent
74bed3ec9b
commit
7da841fcc9
3 changed files with 2000 additions and 1765 deletions
File diff suppressed because it is too large
Load diff
3053
src/code/z_camera.c
3053
src/code/z_camera.c
File diff suppressed because it is too large
Load diff
|
@ -48,7 +48,7 @@ f32 OnePointCutscene_RaycastFloor(CollisionContext* colCtx, Vec3f* pos) {
|
|||
|
||||
void OnePointCutscene_SetCsCamPoints(Camera* camera, s16 actionParameters, s16 initTimer, CutsceneCameraPoint* atPoints,
|
||||
CutsceneCameraPoint* eyePoints) {
|
||||
OnePointCsCamera* onePointCamData = (OnePointCsCamera*)&camera->paramData;
|
||||
OnePointCamData* onePointCamData = &camera->paramData.demo9.onePointCamData;
|
||||
|
||||
onePointCamData->atPoints = atPoints;
|
||||
onePointCamData->eyePoints = eyePoints;
|
||||
|
@ -68,7 +68,7 @@ s32 OnePointCutscene_SetInfo(GlobalContext* globalCtx, s16 camIdx, s16 csId, Act
|
|||
PosRot spA0;
|
||||
PosRot sp8C;
|
||||
f32 tempRand;
|
||||
Unique9OnePointCs* csInfo = ONEPOINT_CS_INFO(csCam);
|
||||
OnePointCsInfo* csInfo = &csCam->paramData.uniq9.csInfo;
|
||||
|
||||
switch (csId) {
|
||||
case 1020:
|
||||
|
|
Loading…
Reference in a new issue