OGLplus
(0.59.0)
a C++ wrapper for rendering APIs
oglplus
utils
program_file_hdr.hpp
Go to the documentation of this file.
1
9
#ifndef OGLPLUS_UTILS_PROGRAM_FILE_HDR_HPP
10
#define OGLPLUS_UTILS_PROGRAM_FILE_HDR_HPP
11
12
#include <
eagine/file_magic_number.hpp
>
13
#include <
eagine/memory/offset_span.hpp
>
14
#include <array>
15
16
namespace
eagine::oglp {
17
//------------------------------------------------------------------------------
18
struct
shader_source_header {
19
file_magic_number<'o', 'g', 'l', '+', 's', 'h', 'd', 'r'> magic;
20
memory::offset_span<const char> source_text = {};
21
GLenum shader_type = GL_NONE;
22
23
constexpr shader_source_header() noexcept = default;
24
};
25
//------------------------------------------------------------------------------
26
struct program_source_header {
27
file_magic_number<'o', 'g', 'l', '+', 'p', 'r', 'o', 'g'> magic;
28
memory::offset_span<const memory::offset_ptr<const shader_source_header>>
29
shader_sources = {};
30
31
constexpr program_source_header() noexcept = default;
32
};
33
//------------------------------------------------------------------------------
34
}
// namespace eagine::oglp
35
36
#endif // OGLPLUS_UTILS_PROGRAM_FILE_HDR_HPP
offset_span.hpp
file_magic_number.hpp
Copyright © 2015-2021
Matúš Chochlík
.
<
chochlik -at -gmail.com
>
Documentation generated on Tue Apr 13 2021 by
Doxygen
(version 1.8.17).