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
+31 -31
View File
@@ -15,46 +15,46 @@
namespace RAY
{
class Texture: public IRessource {
public:
//! @brief Create an texture, loading a file
//! @param filename: path to file to load
Texture(const std::string &filename);
class Texture: public IRessource {
public:
//! @brief Create an texture, loading a file
//! @param filename: path to file to load
Texture(const std::string &filename);
//! @brief Create an texture, from an image
//! @param image: reference to image to create texture from
Texture(const Image &image);
//! @brief Create an texture, from an image
//! @param image: reference to image to create texture from
Texture(const Image &image);
//! @brief A default copy constructor
Texture(const Texture &) = default;
//! @brief A default copy constructor
Texture(const Texture &) = default;
//! @brief A default constructor, no ressources loaded
Texture();
//! @brief A default constructor, no ressources loaded
Texture();
//! @brief An image is assignable
Texture &operator=(const Texture &) = default;
//! @brief Texture destructor, will unload ressources
~Texture() override;
//! @brief An image is assignable
Texture &operator=(const Texture &) = default;
//! @brief Texture destructor, will unload ressources
~Texture() override;
//! @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 unload ressources
bool unload() override;
//! @brief unload ressources
bool unload() override;
//! @brief get image
::Image toImage(void) const;
//! @brief get image
::Image toImage(void) const;
//! @return libray Texture struct
const ::Texture &getTexture(void) const;
//! @return libray Texture struct
const ::Texture &getTexture(void) const;
protected:
private:
//! @brief Texture, really, that's just it...
::Texture _texture;
};
protected:
private:
//! @brief Texture, really, that's just it...
::Texture _texture;
};
}
#endif /* !IMAGE_HPP_ */