Files
Bomberman/sources/System/Shaders/ShaderDrawable2DSystem.cpp
2021-06-16 01:23:59 +02:00

20 lines
427 B
C++

//
// Created by cbihan on 15/06/2021.
//
#include "ShaderDrawable2DSystem.hpp"
namespace BBM
{
ShaderDrawable2DSystem::ShaderDrawable2DSystem(WAL::Wal &wal)
: System(wal)
{
}
void ShaderDrawable2DSystem::onUpdate(WAL::ViewEntity<ShaderComponentDrawable2D> &entity, std::chrono::nanoseconds dtime)
{
auto &shader = entity->getComponent<ShaderComponentDrawable2D>();
shader.update(entity, this->_wal, dtime);
}
}