Skip to content

Commit

Permalink
update Shader getPos
Browse files Browse the repository at this point in the history
  • Loading branch information
tyanmahou committed Oct 31, 2023
1 parent aa5128b commit d6765e4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Re-Abyss/app/views/Shader/BossArrival/BossArrivalShader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ namespace abyss
{
m_cb->pos = static_cast<Float2>(pos);
}
s3d::Vec2 getPos() const
{
return static_cast<s3d::Vec2>(m_cb->pos);
}
void setTime(double time)
{
m_cb->timer = static_cast<float>(time);
Expand Down Expand Up @@ -56,4 +60,8 @@ namespace abyss
{
return m_pImpl->start();
}
s3d::Vec2 BossArrivalShader::getPos() const
{
return m_pImpl->getPos();
}
}
2 changes: 2 additions & 0 deletions Re-Abyss/app/views/Shader/BossArrival/BossArrivalShader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ namespace abyss
const BossArrivalShader& setPos(const s3d::Vec2& pos) const;
const BossArrivalShader& setTime(double time) const;
s3d::ScopedCustomShader2D start() const;

s3d::Vec2 getPos() const;
private:
std::unique_ptr<Impl> m_pImpl;
};
Expand Down

0 comments on commit d6765e4

Please sign in to comment.