rename cache variable for images

This commit is contained in:
arthur.jamet
2021-06-01 11:26:54 +02:00
parent 41c42da5b7
commit 8b5208ddbf
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -10,7 +10,7 @@
#include "Drawables/2D/Rectangle.hpp"
namespace RAY {
std::unordered_map<std::string, std::shared_ptr<::Image>> Image::_modelsCache;
std::unordered_map<std::string, std::shared_ptr<::Image>> Image::_ImageCache;
Image::Image(const std::string &filename):
Rectangle(Vector2(0, 0), Vector2(0, 0), WHITE),
+1 -1
View File
@@ -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<std::string, std::shared_ptr<::Image>> _modelsCache;
static std::unordered_map<std::string, std::shared_ptr<::Image>> _ImageCache;
INTERNAL: