2021-11-30 21:29:18 -06:00
|
|
|
#ifndef CAMERA_H
|
|
|
|
#define CAMERA_H
|
|
|
|
|
|
|
|
#include "transform.h"
|
|
|
|
|
|
|
|
extern const float CAMERA_MINSPEED;
|
|
|
|
extern const float CAMERA_MAXSPEED;
|
|
|
|
extern const float CAMERA_ROTATESPEED;
|
|
|
|
|
|
|
|
struct mCamera {
|
2023-05-12 13:22:05 -05:00
|
|
|
struct mTransform transform;
|
|
|
|
float speed;
|
|
|
|
float speedMult;
|
2023-05-24 20:45:50 -05:00
|
|
|
HMM_Vec3 frame_move;
|
2021-11-30 21:29:18 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
void camera_2d_update(struct mCamera *camera, float deltaT);
|
|
|
|
|
2023-05-24 20:45:50 -05:00
|
|
|
HMM_Mat4 getviewmatrix(const struct mCamera *const camera);
|
2021-11-30 21:29:18 -06:00
|
|
|
void cam_goto_object(struct mCamera *cam, struct mTransform *transform);
|
|
|
|
void cam_inverse_goto(struct mCamera *cam, struct mTransform *transform);
|
|
|
|
|
|
|
|
#endif
|