Files
Seele/src/Engine/System/MeshUpdater.cpp
T
2023-11-26 09:40:48 +01:00

23 lines
448 B
C++

#include "MeshUpdater.h"
#include "Component/Mesh.h"
using namespace Seele;
using namespace Seele::System;
MeshUpdater::MeshUpdater(PScene scene)
: ComponentSystem<Component::Transform, Component::Mesh>(scene)
{
}
MeshUpdater::~MeshUpdater()
{
}
void MeshUpdater::update(Component::Transform& transform, Component::Mesh& comp)
{
for (auto& mesh : comp.asset->meshes)
{
mesh->vertexData->updateMesh(mesh, transform);
}
}