Files
Seele/src/Engine/System/MeshUpdater.cpp
T

22 lines
433 B
C++
Raw Normal View History

2023-10-24 15:01:09 +02:00
#include "MeshUpdater.h"
using namespace Seele;
using namespace Seele::System;
2023-10-26 18:37:29 +02:00
MeshUpdater::MeshUpdater(PScene scene)
: ComponentSystem<Component::Transform, Component::Mesh>(scene)
{
}
2023-11-01 23:12:30 +01:00
MeshUpdater::~MeshUpdater()
{
}
2023-11-06 14:47:21 +01:00
void MeshUpdater::update(Component::Transform& transform, Component::Mesh& meshComp)
2023-10-24 15:01:09 +02:00
{
2023-11-06 14:47:21 +01:00
for(const auto& mesh : meshComp.asset->meshes)
{
mesh->vertexData->updateMesh(transform, mesh);
}
2023-10-24 15:01:09 +02:00
}