diff options
Diffstat (limited to 'src/blucat/sprite.cpp')
-rw-r--r-- | src/blucat/sprite.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/blucat/sprite.cpp b/src/blucat/sprite.cpp index 506d87a..0c66a27 100644 --- a/src/blucat/sprite.cpp +++ b/src/blucat/sprite.cpp @@ -28,12 +28,12 @@ namespace struct SpriteBuilder { BluCat::Sprite *sprite; - glm::vec4 ▭ + const glm::vec4 ▭ - SpriteBuilder(BluCat::Sprite *sprite, glm::vec4 &rect); + SpriteBuilder(BluCat::Sprite *sprite, const glm::vec4 &rect); }; -SpriteBuilder::SpriteBuilder(BluCat::Sprite *sprite, glm::vec4 &rect): +SpriteBuilder::SpriteBuilder(BluCat::Sprite *sprite, const glm::vec4 &rect): sprite{sprite}, rect{rect} { @@ -82,7 +82,7 @@ static const CommandChain loader{ namespace BluCat { -Sprite::Sprite(std::shared_ptr<Texture> texture, glm::vec4 &rect): +Sprite::Sprite(std::shared_ptr<Texture> texture, const glm::vec4 &rect): texture{texture} { SpriteBuilder sprite_builder(this, rect); |