mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-02-22 21:24:59 +00:00
21 lines
368 B
C++
21 lines
368 B
C++
//
|
|
// Created by cbihan on 15/06/2021.
|
|
//
|
|
|
|
#include "ShaderSystem.hpp"
|
|
|
|
|
|
namespace BBM
|
|
{
|
|
ShaderSystem::ShaderSystem(WAL::Wal &wal)
|
|
: System(wal)
|
|
{
|
|
}
|
|
|
|
void ShaderSystem::onUpdate(WAL::ViewEntity<ShaderComponent> &entity, std::chrono::nanoseconds dtime)
|
|
{
|
|
auto &shader = entity->getComponent<ShaderComponent>();
|
|
|
|
shader.update(entity, this->_wal, dtime);
|
|
}
|
|
} |