fix indentation, now using tabs

This commit is contained in:
arthur.jamet
2021-05-21 23:50:54 +02:00
parent 17f0db2bd1
commit dd128b8b97
71 changed files with 1457 additions and 1473 deletions
+34 -34
View File
@@ -15,49 +15,49 @@
namespace RAY
{
namespace Drawables {
class ADrawable2D;
}
class IRessource;
class Image: public Canvas, public IRessource {
public:
//! @brief Create an image, loading a file
//! @param filename: path to file to load
Image(const std::string &filename);
namespace Drawables {
class ADrawable2D;
}
class IRessource;
class Image: public Canvas, public IRessource {
public:
//! @brief Create an image, loading a file
//! @param filename: path to file to load
Image(const std::string &filename);
//! @brief A default copy constructor
Image(const Image &image) = default;
//! @brief A default copy constructor
Image(const Image &image) = default;
//! @brief A default constructor, no ressources loaded
Image();
//! @brief A default constructor, no ressources loaded
Image();
//! @brief An image is assignable
Image &operator=(const Image &image) = default;
//! @brief Image destructor, will unload ressources
~Image();
//! @brief An image is assignable
Image &operator=(const Image &image) = default;
//! @brief Image destructor, will unload ressources
~Image();
//! @brief load ressources from file
//! @param filename: path of input
bool load(const std::string &filename) override;
//! @brief load ressources from file
//! @param filename: path of input
bool load(const std::string &filename) override;
//! @brief export to file
//! @param outputPath: path of output
bool exportTo(const std::string &outputPath);
//! @brief export to file
//! @param outputPath: path of output
bool exportTo(const std::string &outputPath);
//! @brief unload ressources
bool unload() override;
//! @brief unload ressources
bool unload() override;
//! @brief get image
::Image &getImage(void);
//! @brief get image
::Image &getImage(void);
//! @brief draw drawable
void draw(Drawables::ADrawable2D &);
//! @brief draw drawable
void draw(Drawables::ADrawable2D &);
private:
//! @brief Image, really, that's just it...
::Image _image;
};
private:
//! @brief Image, really, that's just it...
::Image _image;
};
}
#endif /* !IMAGE_HPP_ */