summaryrefslogtreecommitdiffstats
path: root/core/resource/image.hh
diff options
context:
space:
mode:
Diffstat (limited to 'core/resource/image.hh')
-rw-r--r--core/resource/image.hh13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/resource/image.hh b/core/resource/image.hh
new file mode 100644
index 0000000..13e912e
--- /dev/null
+++ b/core/resource/image.hh
@@ -0,0 +1,13 @@
+#ifndef CORE_RESOURCE_IMAGE_HH
+#define CORE_RESOURCE_IMAGE_HH 1
+#pragma once
+
+constexpr static unsigned int IMAGE_LOAD_GRAY = 0x0001U;
+constexpr static unsigned int IMAGE_LOAD_FLIP = 0x0002U;
+
+struct Image final {
+ stbi_uc* pixels;
+ glm::ivec2 size;
+};
+
+#endif // CORE_RESOURCE_IMAGE_HH