Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
graph/include/cinematic.h

37 lines
556 B
C
Raw Normal View History

2018-10-30 21:13:36 -04:00
#pragma once
#include <vector>
#include <glm/glm.hpp>
class Mesh;
struct Keyframe {
int time = 0;
glm::vec3 valueVec3 = glm::vec3(0);
int valueInt = 0;
2018-10-30 21:13:36 -04:00
};
enum class AnimationProperty {
Position,
FoV
2018-10-30 21:13:36 -04:00
};
struct Animation {
Mesh* target = nullptr;
AnimationProperty property = AnimationProperty::Position;
std::vector<Keyframe> keyframes;
};
struct Shot {
int start = 0, end = 0;
std::vector<Mesh*> meshes;
std::vector<Animation*> animations;
};
class Cinematic {
public:
std::vector<Shot*> shots;
};