mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-02-19 03:34:07 +00:00
20 lines
427 B
C++
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);
|
|
}
|
|
} |