Line data Source code
1 : // Copyright (c) 2025 Milton McDonald
2 : // This source code is licensed under the MIT License. See LICENSE file in the
3 : // project root for details.
4 :
5 : #include "graphics-engine/version.h"
6 :
7 : #include <format>
8 :
9 : using std::format;
10 : using std::string;
11 :
12 : namespace {
13 :
14 : constexpr int kEngineLibVersionMajor = 1;
15 : constexpr int kEngineLibVersionMinor = 0;
16 : constexpr int kEngineLinVersionPatch = 0;
17 :
18 : } // namespace
19 :
20 : namespace graphics_engine::version {
21 :
22 1 : [[nodiscard]] auto GetEngineLibVersion() -> string {
23 1 : return format("{}.{}.{}", kEngineLibVersionMajor, kEngineLibVersionMinor,
24 1 : kEngineLinVersionPatch);
25 : }
26 :
27 : } // namespace graphics_engine::version
|