lot of opengl draw work to get image on screen

This commit is contained in:
Dynamitos
2025-01-24 00:19:11 +01:00
parent 91bdbe4a09
commit 5f6aef0284
11 changed files with 192 additions and 44 deletions
+7 -2
View File
@@ -1,12 +1,17 @@
#include "BVH.h"
#include <list>
void BVH::addModel(PModel model) { models.push_back(std::move(model)); }
void BVH::addModel(PModel model, glm::mat4 transform)
{
model->boundingBox.transform(transform);
models.push_back(std::move(model));
}
void BVH::addModels(std::vector<PModel> _models)
void BVH::addModels(std::vector<PModel> _models, glm::mat4 transform)
{
for (int i = 0; i < _models.size(); ++i)
{
_models[i]->boundingBox.transform(transform);
models.push_back(std::move(_models[i]));
}
}