Started a versioning system

This commit is contained in:
Grayson Riffe (Laptop) 2021-12-14 10:06:37 -06:00
parent 7a93befa14
commit d1f17e136c
3 changed files with 7 additions and 1 deletions

View File

@ -16,6 +16,7 @@ namespace nf {
m_stateChange(false), m_stateChange(false),
m_stateChangeStarted(false) m_stateChangeStarted(false)
{ {
NFLog("Nothin' Fancy v" + (std::string)NFVERSION);
NFLog("Constructing application"); NFLog("Constructing application");
NFLog("Width: " + std::to_string(m_currentConfig.width) + ", Height: " + std::to_string(m_currentConfig.height) + ", Fullscreen: " + (m_currentConfig.fullscreen ? "true" : "false") + ", Title: " + m_currentConfig.title); NFLog("Width: " + std::to_string(m_currentConfig.width) + ", Height: " + std::to_string(m_currentConfig.height) + ", Fullscreen: " + (m_currentConfig.fullscreen ? "true" : "false") + ", Title: " + m_currentConfig.title);

View File

@ -16,6 +16,11 @@
* ~~~ * ~~~
*/ */
namespace nf { namespace nf {
/**
* @ingroup macros
* Current version of the engine in the format major.minor.patch
*/
#define NFVERSION "0.5.0"
#if defined(_DEBUG) || defined(doxygen) #if defined(_DEBUG) || defined(doxygen)
//Strips __FILE__ down to only the name of the file //Strips __FILE__ down to only the name of the file
#define __FILENAME__ strrchr(__FILE__, '\\') + 1 #define __FILENAME__ strrchr(__FILE__, '\\') + 1

View File

@ -5,7 +5,7 @@
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
DOXYFILE_ENCODING = UTF-8 DOXYFILE_ENCODING = UTF-8
PROJECT_NAME = "Nothin' Fancy" PROJECT_NAME = "Nothin' Fancy"
PROJECT_NUMBER = 0.1 PROJECT_NUMBER = 0.5.0
PROJECT_BRIEF = "C++ 3D Game Engine" PROJECT_BRIEF = "C++ 3D Game Engine"
PROJECT_LOGO = images/logo.png PROJECT_LOGO = images/logo.png
OUTPUT_DIRECTORY = . OUTPUT_DIRECTORY = .