blob: 4f93da6d60515ddad6a85fb802afd93ea05434bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// 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 IMGFLAG_GRAY = 0x0001U;
constexpr static unsigned int IMGFLAG_FLIP = 0x0002U;
struct Image final {
static void register_resource(void);
stbi_uc* pixels;
glm::ivec2 size;
};
#endif
|