fix typos and mispalced spaces

This commit is contained in:
arthur.jamet
2021-06-01 11:41:09 +02:00
parent 8b5208ddbf
commit fd94bd41d3
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ namespace RAY::Drawables::Drawables2D {
Rectangle &operator=(const Rectangle &) = default;
//! @brief A default destructor
~Rectangle() override = default;
virtual ~Rectangle() override = default;
//! @return the dimensions of the rectangle
const Vector2 &getDimensions(void);
+3 -3
View File
@@ -37,13 +37,13 @@ namespace RAY {
std::shared_ptr<::Image> Image::fetchImageInCache(const std::string &path)
{
if (Image::_modelsCache.find(path) == Image::_modelsCache.end())
Image::_modelsCache.emplace(path, std::shared_ptr<::Image>(
if (Image::_ImageCache.find(path) == Image::_ImageCache.end())
Image::_ImageCache.emplace(path, std::shared_ptr<::Image>(
new ::Image(LoadImage(path.c_str())), [](::Image *p) {
UnloadImage(*p);
delete p;
}));
return _modelsCache[path];
return _ImageCache[path];
}
void Image::draw(Drawables::ADrawable2D &drawable)
+1 -1
View File
@@ -31,7 +31,7 @@ namespace RAY
Image &operator=(const Image &image) = default;
//! @brief Image destructor, will unload ressources
~Image() = default;
~Image() override = default;
//! @brief export to file
//! @param outputPath: path of output
+1 -1
View File
@@ -44,7 +44,7 @@ namespace RAY::Drawables::Drawables3D {
Model& operator=(const Model &model) = default;
//! @brief Model destructor, model's data will be deleted if it's the last entity alive
~Model() = default;
~Model() override = default;
//! @brief Unload model (excluding meshes) from memory (RAM and/or VRAM)
bool unloadKeepMeshes();