mirror of
https://github.com/Cesarus85/ringfall-mjolnir-vr.git
synced 2026-10-23 05:00:32 +02:00
51 lines
847 B
C
51 lines
847 B
C
/*
|
|
FOLLOWING_CAMERA.H
|
|
|
|
header included in hcex build.
|
|
*/
|
|
|
|
#ifndef __FOLLOWING_CAMERA_H
|
|
#define __FOLLOWING_CAMERA_H
|
|
#pragma once
|
|
|
|
/* ---------- headers */
|
|
|
|
#include "cseries/cseries.h"
|
|
#include "math/real_math.h"
|
|
|
|
/* ---------- constants */
|
|
|
|
/* ---------- macros */
|
|
|
|
/* ---------- structures */
|
|
|
|
struct following_camera
|
|
{
|
|
boolean initialized;
|
|
boolean confined;
|
|
boolean crouched;
|
|
boolean zoomed;
|
|
short zoom_level;
|
|
short pad6;
|
|
long unit_index;
|
|
short seat_index;
|
|
short padE;
|
|
real_euler_angles2d facing_offset;
|
|
real distance_scale;
|
|
};
|
|
|
|
/* ---------- prototypes/FOLLOWING_CAMERA.C */
|
|
|
|
void following_camera_new(
|
|
struct following_camera *camera);
|
|
void following_camera_deterministic(
|
|
long unit_index,
|
|
real_point3d *position,
|
|
real_vector3d *forward);
|
|
|
|
/* ---------- globals */
|
|
|
|
/* ---------- public code */
|
|
|
|
#endif // __FOLLOWING_CAMERA_H
|