21 lines
452 B
C++
21 lines
452 B
C++
#pragma once
|
|
#include <string>
|
|
#include <vector>
|
|
#include "../inc/glm/common.hpp"
|
|
#include "Util/Path.h"
|
|
|
|
struct CameraState
|
|
{
|
|
glm::vec3 position;
|
|
glm::vec3 direction;
|
|
glm::vec3 target;
|
|
float FOV;
|
|
float nearPlane;
|
|
float farPlane;
|
|
};
|
|
|
|
struct CameraStateInterpolator {
|
|
CameraState operator()(const CameraState& before, const CameraState& after, const double& time);
|
|
};
|
|
|
|
typedef Path<CameraState, CameraStateInterpolator> CameraPath; |