Функция загрузчик с анимациями

This commit is contained in:
2024-01-02 20:12:32 +03:00
parent a0a19fee55
commit 6811650249
2 changed files with 168 additions and 6 deletions

View File

@@ -5,6 +5,7 @@
#include "Model.h"
#include "Camera.h"
#include "Animation.h"
#include <GLM/gtc/type_ptr.hpp>
#include <GLM/gtc/quaternion.hpp>
@@ -33,7 +34,9 @@ class Scene
std::list<Node> nodes; // Список пустых узлов
std::list<Model> models; // Список моделей для рендера
std::list<Camera> cameras; // Список камер
std::vector<Animation> animations; // Список анимаций
std::map<std::string, size_t> animation_names; // Имя анимации - индекс
protected:
void rebuld_tree(const Scene& from); // Перестройка дерева после копирования или присваивания
template <class T>