Go to the documentation of this file.
9 #ifndef OGLPLUS_UTILS_IMAGE_FILE_HDR_HPP
10 #define OGLPLUS_UTILS_IMAGE_FILE_HDR_HPP
12 #include "../gl_api/enum_types.hpp"
18 namespace eagine::oglp {
20 struct image_data_header {
21 file_magic_number<'o', 'g', 'l', '+', 't', 'e', 'x', 'i'> magic;
26 memory::offset_span<const gl_types::ubyte_type> pixels{};
28 constexpr image_data_header() noexcept = default;
38 , channels(c.value()) {}
43 #endif // OGLPLUS_UTILS_IMAGE_FILE_HDR_HPP
GLsizei sizei_type
Signed integer size type.
Definition: config.hpp:88
valid_if< T, valid_if_positive_policy< T > > valid_if_positive
Specialization of valid_if, for values valid if positive.
Definition: positive.hpp:44
GLenum enum_type
Enumeration type.
Definition: config.hpp:52
@ depth
Depth buffer data.
static auto format(std::string &&fmt_str) noexcept -> format_string_and_list< 0 >
Function taking a format string, returning an object for variable specification.
Definition: str_format.hpp:118