adding lonely option for shaders and adding a BombExplosionShaderComponent.cpp to save data

This commit is contained in:
Clément Le Bihan
2021-06-16 10:30:10 +02:00
parent 17bfbfe9f9
commit e9e389374b
10 changed files with 248 additions and 160 deletions
@@ -22,9 +22,10 @@ namespace BBM
ShaderComponent::ShaderComponent(WAL::Entity &entity,
const std::string &fragmentFilePath,
const std::string &vertexFilePath,
const WAL::Callback<WAL::Entity &, WAL::Wal &, std::chrono::nanoseconds> &onFixedUpdate)
const WAL::Callback<WAL::Entity &, WAL::Wal &, std::chrono::nanoseconds> &onFixedUpdate,
bool lonely)
: WAL::Component(entity),
shader(vertexFilePath, fragmentFilePath),
shader(vertexFilePath, fragmentFilePath, lonely),
fragmentFilePath(fragmentFilePath),
vertexFilePath(vertexFilePath),
update(onFixedUpdate)
@@ -44,8 +45,9 @@ namespace BBM
ShaderComponentModel::ShaderComponentModel(WAL::Entity &entity,
const std::string &fragmentFilePath,
const std::string &vertexFilePath,
const WAL::Callback<WAL::Entity &, WAL::Wal &, std::chrono::nanoseconds> &onFixedUpdate)
: ShaderComponent(entity, fragmentFilePath, vertexFilePath, onFixedUpdate)
const WAL::Callback<WAL::Entity &, WAL::Wal &, std::chrono::nanoseconds> &onFixedUpdate,
bool lonely)
: ShaderComponent(entity, fragmentFilePath, vertexFilePath, onFixedUpdate, lonely)
{
}
@@ -60,8 +62,9 @@ namespace BBM
ShaderComponentDrawable2D::ShaderComponentDrawable2D(WAL::Entity &entity,
const std::string &fragmentFilePath,
const std::string &vertexFilePath,
const WAL::Callback<WAL::Entity &, WAL::Wal &, std::chrono::nanoseconds> &onFixedUpdate)
: ShaderComponent(entity, fragmentFilePath, vertexFilePath, onFixedUpdate)
const WAL::Callback<WAL::Entity &, WAL::Wal &, std::chrono::nanoseconds> &onFixedUpdate,
bool lonely)
: ShaderComponent(entity, fragmentFilePath, vertexFilePath, onFixedUpdate, lonely)
{
}
}