34 lines
521 B
C++
34 lines
521 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
#include <glm/glm.hpp>
|
|
|
|
class Mesh;
|
|
|
|
struct Keyframe {
|
|
int time = 0;
|
|
glm::vec3 value = glm::vec3(0);
|
|
};
|
|
|
|
enum class AnimationProperty {
|
|
Position
|
|
};
|
|
|
|
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;
|
|
};
|