From bde4a9f40bb4af39270a124d5ef9571a83305d0a Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 30 Jan 2021 20:36:42 +0000 Subject: Restructure to allow a resource path and testing --- gfx/image.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 gfx/image.h (limited to 'gfx/image.h') diff --git a/gfx/image.h b/gfx/image.h new file mode 100644 index 0000000..d43737f --- /dev/null +++ b/gfx/image.h @@ -0,0 +1,21 @@ +#ifndef IMAGE_H +#define IMAGE_H + +#include // IWYU pragma: export +#include +#include + +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); + + int width, height, numComponents; + std::span data; +}; + +#endif -- cgit v1.2.3