TombEngine/TR5Main/Game/spotcam.h
TokyoSU b615a98c46 (Broken) Deleted Global Folder
- No more enums.h, constants.h, macro.h, etc...
- moved all structure in types.h to there respective file.
2020-05-30 15:55:23 +02:00

61 lines
1.7 KiB
C

#pragma once
#include "phd_global.h"
struct QUAKE_CAMERA
{
GAME_VECTOR spos;
GAME_VECTOR epos;
};
typedef struct SPOTCAM
{
int x;
int y;
int z;
int tx;
int ty;
int tz;
unsigned char sequence;
unsigned char camera;
short fov;
short roll;
short timer;
short speed;
short flags;
short roomNumber;
short pad;
};
enum spotcam_flags
{
SCF_CUT_PAN = (1 << 0), // 0x0001 cut without panning smoothly
SCF_VIGNETTE = (1 << 1), // 0x0002
SCF_LOOP_SEQUENCE = (1 << 2), // 0x0004
SCF_TRACKING_CAM = (1 << 3), // 0x0008
SCF_HIDE_LARA = (1 << 4), // 0x0010
SCF_FOCUS_LARA_HEAD = (1 << 5), // 0x0020
SCF_PAN_TO_LARA_CAM = (1 << 6), // 0x0040
SCF_CUT_TO_CAM = (1 << 7), // 0x0080
SCF_STOP_MOVEMENT = (1 << 8), // 0x0100 stops movement for a given time (cf. `Timer` field)
SCF_DISABLE_BREAKOUT = (1 << 9), // 0x0200 disables breaking out from cutscene using Look key
SCF_DISABLE_LARA_CONTROLS = (1 << 10), // 0x0400 also adds widescreen bars
SCF_REENABLE_LARA_CONTROLS = (1 << 11), // 0x0800 use with 0x0400, keeps widescreen bars
SCF_SCREEN_FADE_IN = (1 << 12), // 0x1000
SCF_SCREEN_FADE_OUT = (1 << 13), // 0x2000
SCF_ACTIVATE_HEAVY_TRIGGERS = (1 << 14), // 0x4000 when camera is moving above heavy trigger sector, it'll be activated
SCF_CAMERA_ONE_SHOT = (1 << 15), // 0x8000
};
extern byte SpotCamRemap[16];
extern byte CameraCnt[16];
extern int LastSpotCam;
extern SPOTCAM SpotCam[64];
extern int NumberSpotcams;
extern int UseSpotCam;
extern int SpotcamDontDrawLara;
extern int SpotcamOverlay;
void InitSpotCamSequences();
void InitialiseSpotCam(short sequence);
void CalculateSpotCameras();
int Spline(int x, int* knots, int nk);