![]() |
SGCT master (487fac4)
Simple Graphics Cluster Toolkit
|
#include <sgct/image.h>
Public Member Functions | |
| Image ()=default | |
| ~Image () | |
| void | allocateOrResizeData () |
| void | load (const std::filesystem::path &filename) |
| void | load (unsigned char *data, int length) |
| void | save (const std::filesystem::path &filename) |
| Save the buffer to file. | |
| unsigned char * | data () |
| const unsigned char * | data () const |
| int | channels () const |
| int | bytesPerChannel () const |
| ivec2 | size () const |
| void | setSize (ivec2 size) |
| void | setChannels (int channels) |
| void | setBytesPerChannel (int bpc) |
|
default |
| sgct::Image::~Image | ( | ) |
| void sgct::Image::allocateOrResizeData | ( | ) |
| int sgct::Image::bytesPerChannel | ( | ) | const |
| int sgct::Image::channels | ( | ) | const |
| unsigned char * sgct::Image::data | ( | ) |
| const unsigned char * sgct::Image::data | ( | ) | const |
| void sgct::Image::load | ( | const std::filesystem::path & | filename | ) |
| void sgct::Image::load | ( | unsigned char * | data, |
| int | length ) |
| void sgct::Image::save | ( | const std::filesystem::path & | filename | ) |
Save the buffer to file.
Type is automatically set by filename suffix.
| void sgct::Image::setBytesPerChannel | ( | int | bpc | ) |
| void sgct::Image::setChannels | ( | int | channels | ) |
| void sgct::Image::setSize | ( | ivec2 | size | ) |
| ivec2 sgct::Image::size | ( | ) | const |