summaryrefslogtreecommitdiff
path: root/gfx/image.h
blob: 23e9a9b0f58d1d9699a9b0c1019cb48be34291ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef IMAGE_H
#define IMAGE_H

#include <span> // IWYU pragma: export
#include <special_members.hpp>
#include <string>

class Image {
public:
	Image(const char * fileName, int flags);
	Image(const std::string & fileName, int flags) : Image(fileName.c_str(), flags) { }
	~Image();

	NO_COPY(Image);
	NO_MOVE(Image);

	unsigned int width, height, numComponents;
	std::span<unsigned char> data;
};

#endif