![]() |
The small3d framework
|
An image, loaded from a png file, which can be used for generating textures. More...
#include <Image.hpp>
Public Member Functions | |
| Image (const std::string fileLocation="") | |
| Default constructor. More... | |
| ~Image ()=default | |
| Destructor. | |
| void | toColour (glm::vec4 colour) |
| Convert to a coloured 10 x 10 pixel image. | |
| unsigned long | getWidth () const |
| Get the image width. More... | |
| unsigned long | getHeight () const |
| Get the image height. More... | |
| unsigned long | getByteSize () const |
| Get the size of the image, in bytes. More... | |
| const float * | getData () const |
| Get the image data. More... | |
An image, loaded from a png file, which can be used for generating textures.
| small3d::Image::Image | ( | const std::string | fileLocation = "" | ) |
Default constructor.
| fileLocation | Location of the png image file |
| unsigned long small3d::Image::getByteSize | ( | ) | const |
Get the size of the image, in bytes.
| const float * small3d::Image::getData | ( | ) | const |
Get the image data.
| unsigned long small3d::Image::getHeight | ( | ) | const |
Get the image height.
| unsigned long small3d::Image::getWidth | ( | ) | const |
Get the image width.
1.8.15