-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathObjectManager.cpp
More file actions
33 lines (30 loc) · 1.34 KB
/
Copy pathObjectManager.cpp
File metadata and controls
33 lines (30 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright 2022, University of Freiburg
// Author: Joel Stanciu
#include <vector>
#include "./ObjectManager.h"
// ____________________________________________________________________________
ObjectManager::ObjectManager(
std::vector<std::vector<std::vector<std::vector<float>>>>& object) {
std::vector<std::vector<std::vector<float>>> attributes;
std::vector<std::vector<float>> rotation_matrix_placeholder;
std::vector<std::vector<float>> final_matrix_placeholder;
std::vector<std::vector<float>> light_positions_placeholder;
std::vector<std::vector<float>> transforms_placeholder;
std::vector<std::vector<float>> translates_placeholder;
std::vector<std::vector<float>> scales_placeholder;
std::vector<std::vector<float>> mvp_matrix_placeholder;
attributes.push_back(rotation_matrix_placeholder);
attributes.push_back(final_matrix_placeholder);
attributes.push_back(light_positions_placeholder);
attributes.push_back(transforms_placeholder);
attributes.push_back(translates_placeholder);
attributes.push_back(scales_placeholder);
attributes.push_back(mvp_matrix_placeholder);
object.push_back(attributes);
object_ = object;
}
// ____________________________________________________________________________
void ObjectManager::update(
std::vector<std::vector<std::vector<std::vector<float>>>>& object) {
object_ = object;
}