mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-05-25 07:34:01 +00:00
20 lines
397 B
C++
20 lines
397 B
C++
//
|
|
// Created by cbihan on 15/06/2021.
|
|
//
|
|
|
|
#include "ShaderModelSystem.hpp"
|
|
|
|
namespace BBM
|
|
{
|
|
ShaderModelSystem::ShaderModelSystem(WAL::Wal &wal)
|
|
: System(wal)
|
|
{
|
|
}
|
|
|
|
void ShaderModelSystem::onUpdate(WAL::ViewEntity<ShaderComponentModel> &entity, std::chrono::nanoseconds dtime)
|
|
{
|
|
auto &shader = entity->getComponent<ShaderComponentModel>();
|
|
|
|
shader.update(entity, this->_wal, dtime);
|
|
}
|
|
} |