summaryrefslogtreecommitdiffstats
path: root/src/core/resource/image.hh
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-12-26 23:17:56 +0500
committeruntodesu <kirill@untode.su>2025-12-26 23:17:56 +0500
commit0f111cf51b00c4e884b7e53b4fd7ff6e38d8af5e (patch)
tree90ddefa28b40b6384dd9618bb7573704de2733a9 /src/core/resource/image.hh
parent6bb4233d5b2a1688e63c947542e92ec5d5a857a6 (diff)
downloadvoxelius-0f111cf51b00c4e884b7e53b4fd7ff6e38d8af5e.tar.bz2
voxelius-0f111cf51b00c4e884b7e53b4fd7ff6e38d8af5e.zip
Add include guards and header comments to sources
Diffstat (limited to 'src/core/resource/image.hh')
-rw-r--r--src/core/resource/image.hh13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/core/resource/image.hh b/src/core/resource/image.hh
index 575591f..4f93da6 100644
--- a/src/core/resource/image.hh
+++ b/src/core/resource/image.hh
@@ -1,7 +1,14 @@
+// SPDX-License-Identifier: BSD-2-Clause
+// Copyright (c) 2025 Kirill Dmitrievich
+// File: image.hh
+// Description: Image resource
+
+#ifndef CORE_RESOURCE_IMAGE_HH
+#define CORE_RESOURCE_IMAGE_HH
#pragma once
-constexpr static unsigned int IMAGE_LOAD_GRAY = 0x0001U;
-constexpr static unsigned int IMAGE_LOAD_FLIP = 0x0002U;
+constexpr static unsigned int IMGFLAG_GRAY = 0x0001U;
+constexpr static unsigned int IMGFLAG_FLIP = 0x0002U;
struct Image final {
static void register_resource(void);
@@ -9,3 +16,5 @@ struct Image final {
stbi_uc* pixels;
glm::ivec2 size;
};
+
+#endif