Lugdunum  0.1.0
Version.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 namespace lug {
4 namespace Core {
5 
9 struct Version {
10  uint32_t major : 10;
11  uint32_t minor : 10;
12  uint32_t patch : 12;
13 
14  operator uint32_t() const {
15  return (major << 22) | (minor << 12) | patch;
16  }
17 
18  static Version fromInt(uint32_t version);
19 };
20 
21 #include <lug/Core/Version.inl>
22 
23 } // Core
24 } // lug
Stores the version of the Application.
Definition: Version.hpp:9
uint32_t minor
Definition: Version.hpp:11
uint32_t major
Definition: Version.hpp:10
static Version fromInt(uint32_t version)
Definition: Version.inl:1
uint32_t patch
Definition: Version.hpp:12