mirror of
https://github.com/Mr-Wiseguy/Zelda64Recomp.git
synced 2024-11-25 14:16:58 +01:00
16 lines
593 B
C
16 lines
593 B
C
|
#ifndef __CAMERA_PATCHES_H__
|
||
|
#define __CAMERA_PATCHES_H__
|
||
|
|
||
|
#include "z64camera.h"
|
||
|
|
||
|
#define RELOAD_PARAMS(camera) ((camera->animState == 0) || (camera->animState == 10) || (camera->animState == 20))
|
||
|
#define CAM_RODATA_SCALE(x) ((x)*100.0f)
|
||
|
#define CAM_RODATA_UNSCALE(x) ((x)*0.01f)
|
||
|
|
||
|
// Load the next value from camera read-only data stored in CameraModeValue
|
||
|
#define GET_NEXT_RO_DATA(values) ((values++)->val)
|
||
|
// Load the next value and scale down from camera read-only data stored in CameraModeValue
|
||
|
#define GET_NEXT_SCALED_RO_DATA(values) CAM_RODATA_UNSCALE(GET_NEXT_RO_DATA(values))
|
||
|
|
||
|
#endif
|