- Framework for Vulkan context - Fixed a bug with dynarray where if `resize()` shrinks the array, destructors are not called. - Fixed grammar issues with the containers library and added property tables to existing data structures.
60 lines
2.0 KiB
C++
60 lines
2.0 KiB
C++
// =====================================================================================================================
|
|
// fennec, a free and open source game engine
|
|
// Copyright © 2025 Medusa Slockbower
|
|
//
|
|
// This program is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
//
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
// =====================================================================================================================
|
|
|
|
///
|
|
/// \file version.h
|
|
/// \brief
|
|
///
|
|
///
|
|
/// \details
|
|
/// \author Medusa Slockbower
|
|
///
|
|
/// \copyright Copyright © 2025 Medusa Slockbower ([GPLv3](https://www.gnu.org/licenses/gpl-3.0.en.html))
|
|
///
|
|
///
|
|
|
|
|
|
#ifndef FENNEC_CORE_VERSION_H
|
|
#define FENNEC_CORE_VERSION_H
|
|
|
|
#include <fennec/lang/types.h>
|
|
#include <fennec/string/string.h>
|
|
|
|
namespace fennec
|
|
{
|
|
|
|
///
|
|
/// \brief simple version struct for drivers and systems
|
|
struct version {
|
|
uint32_t major = { 1 }; //!< the major version
|
|
uint32_t minor = { 0 }; //!< the minor version
|
|
uint32_t patch = { 0 }; //!< the patch
|
|
string str = { string("") }; //!< string representation of the version
|
|
|
|
friend bool operator==(const version& lhs, const version& rhs) {
|
|
return lhs.major == rhs.major and lhs.minor == rhs.minor and lhs.patch == rhs.patch and lhs.str == rhs.str;
|
|
}
|
|
|
|
friend bool operator!=(const version& lhs, const version& rhs) {
|
|
return lhs.major != rhs.major or lhs.minor != rhs.minor or lhs.patch != rhs.patch or lhs.str != rhs.str;
|
|
}
|
|
};
|
|
|
|
}
|
|
|
|
#endif // FENNEC_CORE_VERSION_H
|