mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-01 17:55:48 +00:00
fix typos and mispalced spaces
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user