diff --git a/libs/B-luga-graphics/include/B-luga-graphics/Raylib/Graphics/Graphics.hpp b/libs/B-luga-graphics/include/B-luga-graphics/Raylib/Graphics/Graphics.hpp index b384436..6d16eee 100644 --- a/libs/B-luga-graphics/include/B-luga-graphics/Raylib/Graphics/Graphics.hpp +++ b/libs/B-luga-graphics/include/B-luga-graphics/Raylib/Graphics/Graphics.hpp @@ -265,7 +265,7 @@ namespace Raylib { static std::string getClipboardText(); - static void setWindowIcon(RayImage icon): + static void setWindowIcon(RayImage &icon): }; // Text functions and classes diff --git a/libs/B-luga-graphics/src/RaylibImpl/Graphics/Graphics.cpp b/libs/B-luga-graphics/src/RaylibImpl/Graphics/Graphics.cpp index b03445c..fd4647b 100644 --- a/libs/B-luga-graphics/src/RaylibImpl/Graphics/Graphics.cpp +++ b/libs/B-luga-graphics/src/RaylibImpl/Graphics/Graphics.cpp @@ -56,7 +56,7 @@ namespace Raylib { return _image.format; } - void RayImage::setData(RayImage image) + void RayImage::setData(const RayImage &image) { _image.data = image._image.data; } diff --git a/libs/B-luga-graphics/src/RaylibImpl/Graphics/Graphics.hpp b/libs/B-luga-graphics/src/RaylibImpl/Graphics/Graphics.hpp index cfb8eb1..441a7a3 100644 --- a/libs/B-luga-graphics/src/RaylibImpl/Graphics/Graphics.hpp +++ b/libs/B-luga-graphics/src/RaylibImpl/Graphics/Graphics.hpp @@ -39,12 +39,12 @@ namespace Raylib { int getFormat() const override; - void setData(RayImage image) override; + void setData(const RayImage &image) override; private: ::Image _image; }; - class SpriteImpl { + class SpriteImpl : public Sprite { public: SpriteImpl(const std::string &fileName, float width, float height, std::size_t id);