From 8b5208ddbfdaf4b9390b707ae4cb8ce2fd289525 Mon Sep 17 00:00:00 2001 From: "arthur.jamet" Date: Tue, 1 Jun 2021 11:26:54 +0200 Subject: [PATCH] rename cache variable for images --- lib/Ray/sources/Drawables/2D/Rectangle.cpp | 2 +- lib/Ray/sources/Drawables/Image.cpp | 2 +- lib/Ray/sources/Drawables/Image.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Ray/sources/Drawables/2D/Rectangle.cpp b/lib/Ray/sources/Drawables/2D/Rectangle.cpp index 271f615b..9f623bee 100644 --- a/lib/Ray/sources/Drawables/2D/Rectangle.cpp +++ b/lib/Ray/sources/Drawables/2D/Rectangle.cpp @@ -50,7 +50,7 @@ namespace RAY::Drawables::Drawables2D ImageDrawRectangleV(image, this->_position, this->_dimensions, this->_color); } - Rectangle::operator ::Rectangle () const + Rectangle::operator ::Rectangle() const { ::Rectangle rect; diff --git a/lib/Ray/sources/Drawables/Image.cpp b/lib/Ray/sources/Drawables/Image.cpp index 33108364..0521d89a 100644 --- a/lib/Ray/sources/Drawables/Image.cpp +++ b/lib/Ray/sources/Drawables/Image.cpp @@ -10,7 +10,7 @@ #include "Drawables/2D/Rectangle.hpp" namespace RAY { - std::unordered_map> Image::_modelsCache; + std::unordered_map> Image::_ImageCache; Image::Image(const std::string &filename): Rectangle(Vector2(0, 0), Vector2(0, 0), WHITE), diff --git a/lib/Ray/sources/Drawables/Image.hpp b/lib/Ray/sources/Drawables/Image.hpp index b852c7eb..4ebe712a 100644 --- a/lib/Ray/sources/Drawables/Image.hpp +++ b/lib/Ray/sources/Drawables/Image.hpp @@ -53,7 +53,7 @@ namespace RAY //! @brief, look through cache to see if a model using same file std::shared_ptr<::Image>fetchImageInCache(const std::string &path); - static std::unordered_map> _modelsCache; + static std::unordered_map> _ImageCache; INTERNAL: