TrueReality  v0.1.1912
Logo.cpp
Go to the documentation of this file.
1 /*
2 * True Reality Open Source Game and Simulation Engine
3 * Copyright © 2021 Acid Rain Studios LLC
4 *
5 * This library is free software; you can redistribute it and/or modify it under
6 * the terms of the GNU Lesser General Public License as published by the Free
7 * Software Foundation; either version 3.0 of the License, or (at your option)
8 * any later version.
9 *
10 * This library is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13 * details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this library; if not, write to the Free Software Foundation, Inc.,
17 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * @author Maxim Serebrennik
20 */
21 #include <trUtil/Console/Logo.h>
22 
23 #include <trUtil/PlatformMacros.h>
24 #include <trUtil/VersionUtil.h>
26 
27 #include <iostream>
28 
29 namespace trUtil::Console
30 {
31 
32  void Logo(void)
33  {
35 
36 #ifdef TR_WIN
38  {
39  system("cls");
40  }
41 #elif defined(TR_LINUX)
43  {
44  std::cout << "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n " << std::endl;
45  }
46 #endif
47 
49  std::cout << " ***********************************************************************\n " << std::endl;
51  std::cout << " ---------------------------- " << std::endl;
53  std::cout << " True Reality\n " << std::endl;
54  std::cout << " Version - " << ver.GetVersionString() << std::endl;
56  std::cout << " ----------------------------\n\n\n " << std::endl;
58 
59 
60  std::cout << " True Reality " << ver.GetMajorVersion() << "." << ver.GetMinorVersion();
61  std::cout << " is an Open Source SDK of Virtual Reality" << std::endl;
62  std::cout << " Simulation Modules created and Copyright by Acid Rain Studios LLC" << std::endl;
63  std::cout << " for product development, testing, and sale. Some modules are" << std::endl;
64  std::cout << " commercially licensed and some are LGPL.\n\n" << std::endl;
65  std::cout << " For more information, contact the developers at" << std::endl;
66  std::cout << " AcidRainStudiosLLC@gmail.com\n" << std::endl;
67  std::cout << " ***********************************************************************\n\n\n " << std::endl;
69 
70  }
71 }
int GetMajorVersion()
Gets the Major part of the version string.
void TR_UTIL_EXPORT TextColor(TXT_COLOR TextColor)
Changes Text color in the console window....
Definition: TextColor.cpp:34
A utility to read and control the engines version numbers.
Definition: VersionUtil.h:45
BRIGHT_YELLOW
Definition: TextColor.h:41
std::string GetVersionString()
Returns the full version string.
DEBUG
DEFAULT
Definition: TextColor.h:41
const BuildType TR_BUILD_TYPE
Defines TR Build Types.
int GetMinorVersion()
Gets the Minor part of the version string.
void TR_UTIL_EXPORT Logo(void)
Displays the True Reality Logo in the Consol Window.
Definition: Logo.cpp:32
BRIGHT_RED
Definition: TextColor.h:41
BRIGHT_BLUE
Definition: TextColor.h:41