mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-05-31 17:33:20 +00:00
rename cache variable for images
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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),
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user