17 #include <glm/vec4.hpp> 32 unsigned long width, height;
33 std::vector<float> imageData;
34 unsigned long imageDataSize;
35 void loadFromFile(
const std::string fileLocation);
44 Image(
const std::string fileLocation =
"");
unsigned long getByteSize() const
Get the size of the image, in bytes.
Definition: Image.cpp:169
void toColour(glm::vec4 colour)
Convert to a coloured 10 x 10 pixel image.
Definition: Image.cpp:25
An image, loaded from a png file, which can be used for generating textures.
Definition: Image.hpp:29
Image(const std::string fileLocation="")
Default constructor.
Definition: Image.cpp:15
unsigned long getWidth() const
Get the image width.
Definition: Image.cpp:161
Header of the Logger class.
const float * getData() const
Get the image data.
Definition: Image.cpp:173
~Image()=default
Destructor.
unsigned long getHeight() const
Get the image height.
Definition: Image.cpp:165