OGLplus  (0.59.0) a C++ wrapper for rendering APIs

eagine/embed_baked.cpp

Copyright Matus Chochlik. Distributed under the Boost Software License, Version 1.0. See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt

#include <eagine/embed.hpp>
#include <eagine/main.hpp>
#include <iostream>
namespace eagine {
auto main(main_ctx& ctx) -> int {
const auto res{embed(EAGINE_ID(ZebraFur), "zebra_fur")};
std::cout << hexdump(res.unpack(ctx));
return 0;
}
} // namespace eagine
#define EAGINE_ID(NAME)
Macro for constructing instances of eagine::identifier.
Definition: identifier.hpp:353
Common code is placed in this namespace.
Definition: eagine.hpp:21
static auto embed(identifier res_id, string_view src_path) noexcept -> embedded_resource
Triggers the embedding of data from a file on the specified path.
Definition: embed.hpp:105

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).