mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 15:50:20 +00:00
24 lines
475 B
C++
24 lines
475 B
C++
#include "rendering/scene.hpp"
|
|
#include "rendering/mesh.hpp"
|
|
#include <algorithm>
|
|
|
|
namespace wowee {
|
|
namespace rendering {
|
|
|
|
void Scene::addMesh(std::shared_ptr<Mesh> mesh) {
|
|
meshes.push_back(mesh);
|
|
}
|
|
|
|
void Scene::removeMesh(std::shared_ptr<Mesh> mesh) {
|
|
auto it = std::find(meshes.begin(), meshes.end(), mesh);
|
|
if (it != meshes.end()) {
|
|
meshes.erase(it);
|
|
}
|
|
}
|
|
|
|
void Scene::clear() {
|
|
meshes.clear();
|
|
}
|
|
|
|
} // namespace rendering
|
|
} // namespace wowee
|